#23817: QuerySet evaluation docs are out of date
-------------------------------+--------------------
     Reporter:  koniiiik       |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Documentation  |    Version:  master
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 The [[https://docs.djangoproject.com/en/dev/ref/models/querysets/#when-
 querysets-are-evaluated|docs for QuerySet]] contain a reference to partial
 evaluation of queryset and a warning that explicitly calling `list(qs)`
 requires more memory than just iterating over a queryset.

 As far as I can see, anytime a QuerySet is evaluated, all results are
 pulled from the database at once, stored in `_result_cache` and most list-
 like operations are simply proxied to this cache. This means that there is
 no partial evaluation going on anymore, and `list(qs)` simply creates a
 shallow copy of `qs._result_cache`.

--
Ticket URL: <https://code.djangoproject.com/ticket/23817>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.bd4b2a914b438c274bb4bfdb02a774c9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to