reef-technologies / cookiecutter-rt-django

CookieCutter template for Django application projects with docker-compose etc.
BSD 3-Clause "New" or "Revised" License
19 stars 24 forks source link

increase db connection reliability when working with pgbouncer #142

Closed mjurbanski-reef closed 1 year ago

mjurbanski-reef commented 1 year ago

to be consider: disabling DB-side cursors; they should be disabled with transaction based pgbouncer pooling anyhow and they will break on reconnection

this fixed OperationError that happens sometimes with pgbouncer (especially if it has some proxy in front of it). Fixed issues when working with Vultr postgresql db.

mjurbanski-reef commented 1 year ago

this not safe to use by default due to https://github.com/jdelic/django-dbconn-retry/issues/41