Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Postgres Connection Pooling

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

like image 595
jjdoherty Avatar asked Oct 13 '18 15:10

jjdoherty


1 Answers

You could use persistent connections instead of pooling connections.

like image 113
aladeck Avatar answered Nov 15 '22 01:11

aladeck