"Upgraded to Django 1.4.1 and now I have one database connection per thread"
sorry for that! :)
On Wednesday, 26 September 2012 13:34:13 UTC+2, Ricardo Grizonic wrote:
Hey everyone,--
I recently upgraded from Django 1.3 to 1.4.1 and now it seems that for every new thread, a new database connection to postgresql is created. I'm using:
from django.db import connection
which, according to the docs, should get a global connection that would be used by all the threads. Anything I might be doing wrong?
Thanks, in advance, for you help!
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/DMVavsMi6aUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment