Reputation: 1760
Django does not have any connection pooling. Instead, they recommend working with an external pool, like pgBouncer. This worked great for me in the past, but I am wondering how can get pgbouncer (or something similar) in Heroku (Heroku App <-> Heroku hosted postgres DB). This is crucial since the 150ms connection time per request is not acceptable. Thanks
Upvotes: 1
Views: 866
Reputation: 5979
Try using django-db-pool its a connection pooling DB driver for django that works pretty well. We have many users using this on Heroku who are pretty happy with it.
Upvotes: 2