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
Post a Comment