Re: [] Re: queryset caching - without caching middleware

2012-07-05 Thread Tom Evans
On Thu, Jul 5, 2012 at 4:08 PM, Henrik Genssen wrote: >>Could you show where and how you are executing the query? If the >>queryset is a global, and does not go out of scope at the end of the >>request, then reusing the queryset will not cause the queryset to be >>re-evaluated. >> >>Eg, in this ex

RE: [] Re: queryset caching - without caching middleware

2012-07-05 Thread Henrik Genssen
>Could you show where and how you are executing the query? If the >queryset is a global, and does not go out of scope at the end of the >request, then reusing the queryset will not cause the queryset to be >re-evaluated. > >Eg, in this example, categories is a global outside of the view, and >once

Re: queryset caching - without caching middleware

2012-07-05 Thread Tom Evans
On Thu, Jul 5, 2012 at 3:49 PM, Melvyn Sopacua wrote: > On 5-7-2012 14:28, hinnack wrote: >> - can I disable or force a "refresh" of the cache? > > > Transactions/READ REPEATED behaviour is unl

Re: queryset caching - without caching middleware

2012-07-05 Thread Melvyn Sopacua
On 5-7-2012 14:28, hinnack wrote: > - can I disable or force a "refresh" of the cache? -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Djang

Re: queryset caching - without caching middleware

2012-07-05 Thread Tom Evans
On Thu, Jul 5, 2012 at 1:28 PM, hinnack wrote: > hmm, Ok, Queryset Caching happens alle the time... > > So here are some more questions on this: > - where is the data stored? > - can I ask a model, if its result is cached or a fresh one? > - can I disable or force a "refresh" of the cache? > - how

Re: queryset caching - without caching middleware

2012-07-05 Thread hinnack
hmm, Ok, Queryset Caching happens alle the time... So here are some more questions on this: - where is the data stored? - can I ask a model, if its result is cached or a fresh one? - can I disable or force a "refresh" of the cache? - how would i use a query in a property of a class, without runnin