943 | | `iterator`_ over the results. A ``QuerySet`` typically reads all of |
944 | | its results and instantiates all of the corresponding objects the |
945 | | first time you access it; ``iterator()`` will instead read results and |
946 | | instantiate objects in discrete chunks, yielding them one at a |
947 | | time. For a ``QuerySet`` which returns a large number of objects, this |
948 | | often results in better performance and a significant reduction in |
949 | | memory use. |
| 943 | `iterator`_ over the results. A ``QuerySet`` typically caches its |
| 944 | results internally so that repeated evaluations do not result in |
| 945 | additional queries; ``iterator()`` will instead read results directly, |
| 946 | without doing any caching at the ``QuerySet`` level. For a |
| 947 | ``QuerySet`` which returns a large number of objects, this often |
| 948 | results in better performance and a significant reduction in memory |
| 949 | use. |