Connection pool

Connection pool

In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required. 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.

Applications

Connection pooling being normally used in web-based and enterprise applications is usually handled by an application server. Any dynamic web page can be coded to open a connection and close it normally but behind the scenes when a new connection is requested, one is returned from the connection pool maintained by the application server. Similarly, when a connection is closed it is actually returned to the connection pool.

Connection pooling is not limited to using application servers. Traditional applications that need frequent access to databases can benefit from connection pooling as well. This was traditionally handled by manually maintaining database connections, but as expected, that meant very well-crafted programming as the framework for pooling is highly complex. In recent years, things have become a lot easier due to availability of third-party libraries that allow connection pooling as well as SQL statement pooling, thus giving high performance in database intensive applications.

Various parameters such as number of minimum connections, maximum connections and idle connections can be set to make sure the connection pool works well according to the environment it is deployed to work in.

Database support

Connection pooling is supported by IBM DB2[1], Microsoft SQL Server[2], Oracle.[3], MySQL[4] and PostgreSQL[5]

References

  1. ^ IBM Connection Pooling Support
  2. ^ SQL Server Connection Pooling (ADO.NET)
  3. ^ OCI Driver Connection Pooling
  4. ^ MySQL Connection Pooling
  5. ^ PostgreSQL Replication, Clustering and Connection Pooling

Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Connection Pool — Unter einem Connection Pool versteht man in der Softwaretechnik einen Cache von bestehenden Datenbankverbindungen, der für Anfragen verwendet wird. Da die Einrichtung einer neuen Verbindung zur Datenbank Zeit kostet und Rechnerressourcen bindet… …   Deutsch Wikipedia

  • Connection pool — En computación, se denomina connection pool (agrupamiento de conexiones) al manejo de una colección de conexiones abiertas a una base de datos de manera que puedan ser reutilizadas al realizar múltiples consultas o actualizaciones. Cada vez que… …   Wikipedia Español

  • Connection pool — En computación, se denomina connection pool (agrupamiento de conexiones) al manejo de una colección de conexiones abiertas a una base de datos de manera que puedan ser reutilizadas al realizar múltiples consultas o actualizaciones. Cada vez que… …   Enciclopedia Universal

  • Pool — may refer to: Bodies of water*Plunge pool, small, deep body of water *The River Pool, river in England, tributary to the River Ravensbourne *Reflecting pool, shallow pool of water designed to reflect a structure and its surroundings: **Capitol… …   Wikipedia

  • Pool (computer science) — A pool in computer science is a set of initialised resources that are kept ready to use, rather than allocated and destroyed on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When… …   Wikipedia

  • Pool Revolution: Cue Sports — Publisher(s) Hudson Soft Platform(s) …   Wikipedia

  • Pool Meadow Bus Station — Pool Meadow Location Locale Fairfax St …   Wikipedia

  • Connection (EP) — Connection EP (split) by Home Grown and Limbeck Released 2000 …   Wikipedia

  • Pool User — A Pool User (PU) is a client in the Reliable Server Pooling (RSerPool) framework. In order to use the service provided by a pool, a PU has to proceed the following steps: * Ask a Pool Registrar for server selection (the Pool Registrar will return …   Wikipedia

  • Pool of London — Originally, the Pool of London was the stretch of the River Thames forming the south side of the City of London. The term was later used more generally to refer to the stretch of the river in between London Bridge and Rotherhithe, which… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”