Reputation: 504
How do you pool connections in Django v2.1 for a Postgres db? This heroku library is no longer supported. On the Django website it has a section about connection pooling for pgBouncer but can't seem to find a tutorial online for getting setup with pgBouncer or an example project. Heroku also doesn't allow the pgBouncer buildpack for hobby tier databases, so if there is a way round this issue would be great. Any help would be greatly appreciated
Upvotes: 11
Views: 17157
Reputation: 263
Django 5.1 (2024-09) introduces support for connections pools https://docs.djangoproject.com/en/5.1/ref/databases/#postgresql-pool
Upvotes: 1
Reputation: 97
You could use persistent connections instead of pooling connections.
Upvotes: 2