makes sense, the connection is pooled. if you make lots of connections, like
more than five simultaneous connections, you'd see more of it, if you call
engine.dispose() then engine.connect(), you would see it again also, etc.
Also try using NullPool, then you'd see the hook run every time
Yes but only once when the app starts up.
On Friday, September 8, 2023 at 10:04:45 AM UTC-6 Mike Bayer wrote:
> assuming proper indentation it looks fine. are your print statements
> being seen ?
>
> On Fri, Sep 8, 2023, at 11:54 AM, Steven Schierholz wrote:
>
> Ok that makes sense and
assuming proper indentation it looks fine. are your print statements being
seen ?
On Fri, Sep 8, 2023, at 11:54 AM, Steven Schierholz wrote:
> Ok that makes sense and clarifies some stuff for me. I have tried your
> implementation but it doesn't seem like its getting new connections. We are
>
Ok that makes sense and clarifies some stuff for me. I have tried your
implementation but it doesn't seem like its getting new connections. We are
using sessionmaker(). So basically this is what we are doing. Can you help
me understand if we are doing this right and if any changes need to