]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add LIFO for connection pooling
authorTaem Park <wwwee98@gmail.com>
Tue, 21 Aug 2018 14:54:45 +0000 (10:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Sep 2018 01:58:02 +0000 (21:58 -0400)
commitb64a3dd87a4204ce6d4f2793a7a3f7fbf72eb01f
tree8de8e0e60e63228beae54378eae0e990b4a9ce3c
parent67a2cd92295bef55d914a5c560b4cead5d456837
Add LIFO for connection pooling

Added new "lifo" mode to :class:`.QueuePool`, typically enabled by setting
the flag :paramref:`.create_engine.pool_use_lifo` to True.   "lifo" mode
means the same connection just checked in will be the first to be checked
out again, allowing excess connections to be cleaned up from the server
side during periods of the pool being only partially utilized.  Pull request
courtesy Taem Park.

Change-Id: Idb5e299c5082b3e6b547bd03022acf65fdc34f35
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/467
doc/build/changelog/migration_13.rst
doc/build/changelog/unreleased_13/pr467.rst [new file with mode: 0644]
doc/build/core/pooling.rst
lib/sqlalchemy/engine/__init__.py
lib/sqlalchemy/engine/strategies.py
lib/sqlalchemy/pool/impl.py
lib/sqlalchemy/util/queue.py
test/engine/test_pool.py