Monday, November 28, 2011

Re: Large Queryset Calculation In Background?

On Nov 28, 10:17 am, Javier Guerra Giraldez <jav...@guerrag.com>
wrote:
> On Mon, Nov 28, 2011 at 10:10 AM, Tom Evans <tevans...@googlemail.com> wrote:
> > Django currently always fetches the entire result all at once,
> > regardless of how you then fetch the data from the queryset.

Ah, I must have been misunderstanding a discussion[1] on Django-
Developers.

> but this result isn't the whole queryset result, it's a chunk of it.
> the ORM adds 'LIMIT' arguments to the query.  I think the answer to
> Nan's question is that there's no lock across chunked reads.
>
> --
> Javier

Thanks, Javier -- that's a huge help!

[1] http://groups.google.com/group/django-developers/browse_thread/thread/f19040e2e3229d7a#

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

No comments:

Post a Comment