Skip to content

Commit 990ab01

Browse files
MANAS225jacobtylerwalls
authored andcommitted
[6.0.x] Fixed #37039 -- Removed outdated note from QuerySet.iterator() docs.
Backport of 7e7e969 from main.
1 parent f0c269f commit 990ab01

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/ref/models/querysets.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,9 +2622,8 @@ if you call its asynchronous version ``aiterator``.
26222622

26232623
A ``QuerySet`` typically caches its results internally so that repeated
26242624
evaluations do not result in additional queries. In contrast, ``iterator()``
2625-
will read results directly, without doing any caching at the ``QuerySet`` level
2626-
(internally, the default iterator calls ``iterator()`` and caches the return
2627-
value). For a ``QuerySet`` which returns a large number of objects that you
2625+
will read results directly, without doing any caching at the ``QuerySet``
2626+
level. For a ``QuerySet`` which returns a large number of objects that you
26282627
only need to access once, this can result in better performance and a
26292628
significant reduction in memory.
26302629

0 commit comments

Comments
 (0)