Re: Feature request: queryset caching inside a request

2011-11-08 Thread Tom Evans
On Tue, Nov 8, 2011 at 5:02 PM, Chase wrote: > I agree that the kind of queries that are repeated tend to be light > weight ones. The only reason I started looking at this was due to some > higher than average latency between servers in our hosting > environment. > > When you're spending an extra

Re: Feature request: queryset caching inside a request

2011-11-08 Thread Chase
I agree that the kind of queries that are repeated tend to be light weight ones. The only reason I started looking at this was due to some higher than average latency between servers in our hosting environment. When you're spending an extra 10m per query, even the light ones count. http://bitkick

Re: Feature request: queryset caching inside a request

2011-11-08 Thread Tom Evans
On Tue, Nov 8, 2011 at 4:07 PM, Chase wrote: > Has anyone else ever been surprised by the number of duplicate > database queries when looking at the Django debug toolbar output? > > In my application, we have models for Users, Profiles and Companies. > Many of our methods take a user as a paramete

Feature request: queryset caching inside a request

2011-11-08 Thread Chase
Has anyone else ever been surprised by the number of duplicate database queries when looking at the Django debug toolbar output? In my application, we have models for Users, Profiles and Companies. Many of our methods take a user as a parameter, and then look up the related profile and/or company.