Content deleted Content added
I see a broken link here,,, That's why I replace the link with a new article and also remove 2 broken links Tags: Reverted Visual edit |
Adding local short description: "Link between a client and database server", overriding Wikidata description "means by which a database server and its client software communicate with each other" |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
{{Short description|Link between a client and database server}}
{{no inline sources|date=July 2025}}
A '''database connection''' is a facility in [[computer science]] that allows [[Client (computing)|client]] software to talk to [[database server]] software, whether on the same machine or not. A '''connection''' is required to send [[command (computing)|commands]] and receive answers, usually in the form of a result set.
Line 11 ⟶ 13:
Database connections are finite and [[time complexity|expensive]] and can take a disproportionately long time to create relative to the operations performed on them. It is inefficient for an application to create, use, and close a database connection whenever it needs to update a database.
[[Connection pool]]ing is a technique designed to alleviate this problem. A pool of
The connection object obtained from the connection pool is often a wrapper around the actual database connection. The wrapper understands its relationship with the pool, and hides the details of the pool from the application. For example, the wrapper object can implement a "close" method that can be called just like the "close" method on the database connection. Unlike the method on the database connection, the method on the wrapper may not actually close the database connection, but instead return it to the pool. The application need not be aware of the connection pooling when it calls the methods on the wrapper object.
|