I'm not exactly sure what it is you're looking for.
The position of the core team has been fairly clear -- there are third
party connection pooling tools that handle connection pooling very
well.
The recommendation of the core team is that you should use these tools.
The alternative is to try an engineer a solution into Django's DB
connection stack. This solution would inevitably be less stable than
one that originates from a project whose sole purpose is implementing
a connection pool.
If you're looking for a recommendation for a connection pooler for
MySQL, that's another matter. Unfortunately, I can't be much help
here; I don't keep on top of developments in the MySQL world, so I
can't comment with any authority.
Yours,
Russ Magee %-)
On Thu, Jan 26, 2012 at 5:01 AM, Cal Leeming [Simplicity Media Ltd]
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-develop...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
# Apparently this will stop many connections to MySQLfrom django.core import signalsfrom django.db import close_connectionsignals.request_finished.disconnect(close_connection)
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?
On Friday, February 17, 2012 10:11:57 PM UTC+1, Cal Leeming [Simplicity Media Ltd] wrote:# Apparently this will stop many connections to MySQLfrom django.core import signalsfrom django.db import close_connectionsignals.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.
what about not closing the connections, but aborting any pending transaction?
--
Javier
Could you elaborate on this a bit more? And would this affect MySQL?
Hmm - what about a documentation update, so at least people in the future don't have to go trawling through tons of mailing lists to find this.