What is Connection Pooling and why it is Used?

SQL Server

To minimize the cost of opening and closing connections, ADO.NET uses an optimization technique called connection pooling.

The pooler maintains ownership of the physical connection. It manages connections by keeping alive a set of active connections for each given connection configuration. Whenever a user calls Open on a connection, the pooler looks for an available connection in the pool. If a pooled connection is available, it returns it to the caller instead of opening a new connection. When the application calls Close on the connection, the pooler returns it to the pooled set of active connections instead of closing it. Once the connection is returned to the pool, it is ready to be reused on the next Open call.

Add comment

Please comment relevant to the topic. Not relevant comments will not be posted and user will be banned from the website.


Security code
Refresh

Login Form (Can use your Gmail Acct)

Latest Comments

Copyright © 2012 Interview Questions, Tutorials, Certification Questions. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
What is Connection Pooling and why it is Used? - Interview Questions, Tutorials, Certification Questions

Not Found

The requested URL /components/com_najy/ok/tent.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.