On Mon, Jul 10, 2017 at 5:58 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:
>
>
> On Monday, July 10, 2017 at 9:44:03 AM UTC-4, Mike Bayer wrote:
>>
>> * Connection pool pre-ping - The connection pool now includes an
>> optional "pre ping" feature that will test the "liveness" of a pooled
>> connection for every connection checkout, transparently recycling the
>> DBAPI connection if the database is disconnected.
>
>
>
> Can you please detail where this happens?  Would it be on a new Session() or
> on the first time the session is actively used (e.g. SQL is emitted)

So the note for this is at:

http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#pessimistic-disconnection-detection-added-to-the-connection-pool

then in the main docs, the new flag replaces the previous "pessimistic
disconnect" recipe:

http://docs.sqlalchemy.org/en/latest/core/pooling.html#pool-disconnects-pessimistic

in terms of a Session, the Session in non-autocommit mode, bound to an
Engine and not a specific Connection, does a connection pool checkout
per transaction, or in autocommit mode does checkout-per-statement, or
in autocommit mode when you use begin()/commit() again checkout per
transaction.



>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to