django-db-pool
django-db-pool copied to clipboard
PoolError: connection pool exausted
Hey there,
Started working with django-db-pool. Once I changed the settings and deployed to Heroku I saw immediate improvements in response times.
For some reason when I'm running in dev mode on my machine I'm getting PoolError: connection pool exausted
This happens on the second time I try to query the DB. First time I log in (check DB for data) and all is well, when the next page loads I get the error..
Same code is running great in production.. Any ideas?
How are you running django on your dev machine? What pool options are you using?
running with foreman.
Update - the same problem now happens in production. Not using any special pool options (Using autocommit - not sure if relavant)
Depending upon your app server's process/threading model you may need to raise the number of connections in the pool for each process. See the MAX_CONNS
parameter in the readme.