How to disable connection pooling with PostgreSQL in flask-sqlalchemy? -


i want use pgpool or pgbouncer external connection pooler flask app. flask-sqlalchemy extension not seem expose way change connection pooler nullpool. there way this?

while should possible apply_driver_hacks method, recommend against it.

the tcp overhead negligible on local machine, authentication , negotiation (encoding example) isn't. keeping pool useful within flask , if needed can configured sqlalchemy_pool_size, sqlalchemy_pool_timeout, sqlalchemy_pool_recycle , sqlalchemy_max_overflow settings.

if want cut down on overhead (albeit negligible) , 1 instance flask app thing connecting postgres, removing pgbouncer/pgpool mix better.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -