3 ms·
This old thread about it is interesting: https://groups.google.com/forum/?fromgroups=#!topic/django-users/m1jeE4Cxr9A https://groups.google.com/forum/?fromgroup
by bjourne 14y ago
This old thread about it is interesting: https://groups.google.com/forum/?fromgroups=#!topic/django-users/m1jeE4Cxr9A https://groups.google.com/forum/?fromgroups=#!topic/django-u...
I really hope Django gets support for persistent connections and/or connection pooling. pgbouncer isn't always an option on shared hosting (and is a royal PITA to setup on Windows) and there are other databases than postgres.
- jaytaylor 14y agoHere @ SendHub we've been using django-db-pool[0] since Q3 of 2012 in production and it's been pretty smooth sailing. NB: I highly recommend verifying via postgres logs that the module is doing what you expect, because it may not be immediately clear whether the driver has bee activated or not. [0] https://github.com/gmcguire/django-db-pool https://github.com/gmcguire/django-db-pool
- craigkerstiens 14y agoAs per the bottom of the post persistent connections have already been committed for Django 1.6 - https://github.com/django/django/commit/2ee21d https://github.com/django/django/commit/2ee21d