On Tue, 2008-04-15 at 18:50 -0700, Travis Parker wrote:
> Is there a reason that QuerySet methods like order_by() or filter()
> don't simply pass on an appropriately modified version of their own
> cache to the new QuerySet?

Because every time you modify a QuerySet you are changing the results
that will be returned. Calling filter() will restrict the results.
Calling order_by() will change the order the results are returned in.
And so on. Thus, the cache of the queyrset that was cloned is invalid
for the new queryset.

If you already have the results in the cache and you know that your
modifications to the queryset could just as easily be done in Python,
then just do them in Python yourself.

Regards,
Malcolm

-- 
Atheism is a non-prophet organization. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to