Pros and Cons of SQLAlchemy Pool with connection poolers like PGBouncer/Odyssey #12801
Unanswered
funkindy
asked this question in
Usage Questions
Replies: 1 comment
-
|
i dont have real world experience w/ PGBouncer outside of local testing, I dont know if I'd leave NullPool when using this tool, unless I measured additional latency that could be resolved by adding a second QueuePool layer. I'd be concerned about differing "reset" behaviors for connections that stay in QueuePool vs. those that come recycled from PGBouncer. I'd probably write a lot of test suites to really nail down everything going on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am using SA connection pools with standalone poolers all the time, and everything works fine. But does it really make sense?
Is there some best practices/caveats or benchmarks for when to use SA pool vs when to just use NullPool with standalone pooler?
I see @zzzeek is pointing out that NullPool is good to start, especially for debugging, but what about general use in production? Maybe someone can share an experience?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions