Re: Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread Malcolm Tredinnick
On Sat, 2007-03-10 at 02:24 +1100, Malcolm Tredinnick wrote: > On Fri, 2007-03-09 at 15:20 +, [EMAIL PROTECTED] wrote: > > I was trying to figure out how exactly caching worked with the query > > sets... > > > > If I was running three different queries against the same table like > > below, I

Re: Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread Malcolm Tredinnick
On Fri, 2007-03-09 at 15:20 +, [EMAIL PROTECTED] wrote: > I was trying to figure out how exactly caching worked with the query > sets... > > If I was running three different queries against the same table like > below, I know it hits the DB each time: > > objects = MyObject.objects.fillter(o

Does .filter on an existing QuerySet hit the database again?

2007-03-09 Thread [EMAIL PROTECTED]
I was trying to figure out how exactly caching worked with the query sets... If I was running three different queries against the same table like below, I know it hits the DB each time: objects = MyObject.objects.fillter(object_name="value") # some code here objects = MyObject.objects.fillter(o