On Nov 4, 3:38 am, Marco Paolini <markopaol...@gmail.com> wrote:
> what if you use .chunked().iterator() ?

You can't. .chunked() returns a generator. Note that the memory usage
is total memory usage for the process, not for the query. The memory
usage for the query is probably just a small part of the total memory
usage.

The .chunked will basically alter the qs.query to use a chunked_cursor
and avoid the fetching of all results when using sqlite3. Then it
calls .iterator().

 - Anssi

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

Reply via email to