Connection Pool-connection pools

Source: Internet
Author: User

1. Why use the connection pool?

-It takes time and resources to create a connection.
-Connection pools can be used to maintain connections after a specific page is run.
2. Comparison between using a connection pool and not using a connection pool

3. Connection Pool in ADO. net

-If oledbconnection is used, the connection pool will be providedProgramAutomatic Processing

-If the sqlconnection class is used, the connection pool is implicitly managed, but options are also provided to allow you to manage the pool by yourself.

Specify in the connection string:

A. Pooling = true; // The default value is true.

B. Connection lifetime = 5; // The default value is 0.

C. Min pool size = 1; // The default value is 0.

D. Max pool size = 50; // The default value is 100.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.