Connection pooling

Question posted in Computer Software on 06 2010
Rate question difficulty level 0 Votes
What is connection pooling and what is it good for ?
 
 
2 Answers
 
In software engineering, a connection pool is a cache of database connections maintained by the database so that the connections can be reused when the database receives future requests for data. Connection pools are used to enhance the performance of executing commands on a database. Opening and maintaining a database connection for each user, especially requests made to a dynamic database-driven website application, is costly and wastes resources. In connection pooling, after a connection is created, it is placed in the pool and it is used over again so that a new connection does not have to be established. If all the connections are being used, a new connection is made and is added to the pool. Connection pooling also cuts down on the amount of time a user must wait to establish a connection to the database.

credits : http://en.wikipedia.org/wiki/Connection_pool

06/21/2010
 
 
We have recently discovered that if you are using integrated authentication, pooling is based on the individuals connecting even though the connection string is exactly the same on all requests. But the connections will be pooled for each subsequent request by that user (assuming you don't run out of connections before the next request by that user).

Also, if you are able to connect using integrated authentication, you do not need to remember to pass user id to each stored procedure, but rather get it from the db connection directly using a SQL Function.

06/22/2010
 
 
Add an answer*
 
Your name
Email
 
Company: db@net
Location: Israel
database

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------