[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Integrate "pre-ping" into connection pool.
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-03-21 14:34:42
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/f881dae8179b/ Changeset: f881dae8179b Branch: master User: zzzeek Date: 2017-03-20 22:01:23+00:00 Summary: Integrate "pre-ping" into connection pool. Added native "pessimistic disconnection" handling to the :class:`.Pool` object. The new parameter :paramref:`.Pool.pre_ping`, available from the engine as :paramref:`.create_engine.pool_pre_ping`, applies an efficient form of the "pre-ping" recipe featured in the pooling documentation, which upon each connection check out, emits a simple statement, typically "SELECT 1", to test the connection for liveness. If the existing connection is no longer able to respond to commands, the connection is transparently recycled, and all other connections made prior to the current timestamp are invalidated. Change-Id: I89700d0075e60abd2250e54b9bd14daf03c71c00 Fixes: #3919 Affected #: 10 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |