3 ms·
I'm not sure if this is in fact what you're saying, but the closing the database connection each time is only the default (historical reasons), changing it is a
by Scarblac 11y ago
I'm not sure if this is in fact what you're saying, but the closing the database connection each time is only the default (historical reasons), changing it is a matter of changing one setting: https://docs.djangoproject.com/en/1.9/ref/databases/#connection-management https://docs.djangoproject.com/en/1.9/ref/databases/#connect...
- bluetech 11y agoThis is still a similar problem for the memcached cache backend (which django recommends): https://code.djangoproject.com/ticket/11331 https://code.djangoproject.com/ticket/11331
- brianwawok 11y agoOh interesting. I did not mess with memcached, just django + gunicorn + nginx... was pretty nice performance for simple webappy stuff.