On Friday, February 17, 2012 10:11:57 PM UTC+1, Cal Leeming [Simplicity Media Ltd] wrote: > > # Apparently this will stop many connections to MySQL > from django.core import signals > from django.db import close_connection > signals.request_finished.disconnect(close_connection) >
This approach has quite a few issues on it's own, eg for postgres if the transaction is broken all following requests will raise a 500. You have to at least reset the connection state to something useable again. I'd love to see this as a 'settings.py' option, does anyone else think this > would be a good idea?? Something like 'persistent' : True.. maybe? > -1, we already have enough of them ;) Cheers, Florian -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/pBSx93aPffIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
