Re: queryset caching note in docs

2011-10-28 Thread Tom Evans
On Fri, Oct 28, 2011 at 1:05 PM, Marco Paolini wrote: > it's a bit more complex: there are basically two phases: >  1) row fetching from db using cursor.fetchmany() >  2) model instance creation in queryset > > both are delayed as much as possible (queryset lazyness) > > phase two (model instance

Re: queryset caching note in docs

2011-10-28 Thread Marco Paolini
On 28/10/2011 12:58, Tom Evans wrote: On Fri, Oct 28, 2011 at 11:23 AM, Marco Paolini wrote: Hi all, I'd like to add a small note of warning about queryset caching in dos, in topics/db/queries.txt "Caching and QuerySets" section, something like: Keep in mind when looping through a queryset an

Re: queryset caching note in docs

2011-10-28 Thread Tom Evans
On Fri, Oct 28, 2011 at 11:23 AM, Marco Paolini wrote: > Hi all, > > I'd like to add a small note of warning about queryset caching in dos, > in topics/db/queries.txt "Caching and QuerySets" section, > something like: > > Keep in mind when looping through a queryset and altering data that > might

queryset caching note in docs

2011-10-28 Thread Marco Paolini
Hi all, I'd like to add a small note of warning about queryset caching in dos, in topics/db/queries.txt "Caching and QuerySets" section, something like: Keep in mind when looping through a queryset and altering data that might be returned by the same queryset, that instances might not be "fresh"