Russell Keith-Magee wrote:
> 
>> somehow i assumed that the QuerySets never load in the whole result-set,
>> except when they are forced (cast to list for example). but now i see
>> that of course, if you cache the results, then you will have all the
>> results in memory anyway...
> 
> This is what happens. The iterator loads from the database on demand,
> and caches for later use. For small result sets (< 100 results), the
> first query will return all the results, but if your query returns a
> large list of objects, multiple db queries will be issued to pull back
> data a little bit at a time. Either way, the results are cached in the
> queryset for later use.
> 


sorry, but is this the description of the __iter__ case, or the 
iterator() case?


gabor

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to