Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-07-24 Thread Wasil Sergejczyk
https://twitter.com/raphaelbarrois/status/337924659666362368 worked for me, after i updated from 1.0.3 to 1.9.14 понедельник, 15 апреля 2013 г., 1:44:25 UTC+6 пользователь Ben Holloway написал: > > using uWSGI 1.0.4 for reference > > On Sunday, April 14, 2013 1:43:26 PM UTC-6, budl...@gmail.com w

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
using uWSGI 1.0.4 for reference On Sunday, April 14, 2013 1:43:26 PM UTC-6, budl...@gmail.com wrote: > > I think this is more likely the real bug, I saw an increase in database > connections as well. > > > https://groups.google.com/forum/?fromgroups=#!topic/django-users/FxTD5M0x-G8 > > On Tues

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
I think this is more likely the real bug, I saw an increase in database connections as well. https://groups.google.com/forum/?fromgroups=#!topic/django-users/FxTD5M0x-G8 On Tuesday, April 9, 2013 8:06:18 AM UTC-6, Andy Dustman wrote: > > You know, I had another report of this, which seemed co

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
Odd how one guy in thread says 1.5.1 fixed it, another says SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED, which really shouldn't fix it unless django is already persisting database connections per thread in 1.5, which isn't supposed to happen until 1.6. The original op doesn't even agree

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-09 Thread Andy Dustman
You know, I had another report of this, which seemed completely improbable: https://plus.google.com/u/0/101898908470597791359/posts/AuMJdgEo93k Maybe it's related to a bug in Django 1.5 that was fixed in 1.5.1? https://www.djangoproject.com/weblog/2013/mar/28/django-151/ On Thu, Apr 4, 2013 at 1

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-04 Thread budlight
I would say its definitely not isolation level, as restarting the django instance made this issue go away for a few hours. I would setup a test for this, but don't really know if there already exist any per thread tests for django sanity I could look at for examples. The caching change is ab

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-02 Thread Alan Johnson
It's tough to know what the deal is without any info on your code or database, but two things come to mind. One is some of the new caching in Django 1.5 for related models (https://docs.djangoproject.com/en/dev/releases/1.5/#caching-of-related-model-instances), and the other is database isolat

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-01 Thread budlight
So far I don't have this issue at all with 1.4, which makes sense as it started exactly at the 1.5 upgrade time for me. On Monday, April 1, 2013 7:40:08 AM UTC-6, budl...@gmail.com wrote: > > So I have some stats reports that I run that it almost seems as if each > thread has its own queryset c

Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-01 Thread budlight
So I have some stats reports that I run that it almost seems as if each thread has its own queryset cached. Each time I refresh they change. I'm going to revert back to 1.4 due to this bug. I wish I could come up with a simple example, to demonstrate this, the problem is that the underlying