Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Django don't close some database connection
I use a postgres database. And over the time django accumulates database connections.
In the table of current query statistics appear all the open connections and are similar. But the time is always Just now and the duration increase very slowly.
Some recommendation to prevent this. I doesn’t set up any timeout in my setting data base. May be this will solve the problem?
I have deploy django with gunicorn and I have currently 17 workers.