1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #29984 -- Made QuerySet.iterator() without chunk_size raise ValueError after prefetch_related().

Per deprecation timeline.
This commit is contained in:
Mariusz Felisiak
2023-01-12 19:13:22 +01:00
parent 5a0e5d5cf0
commit 2e4d188e7c
4 changed files with 11 additions and 36 deletions

View File

@@ -2476,12 +2476,6 @@ value for ``chunk_size`` will result in Django using an implicit default of
Depending on the database backend, query results will either be loaded all at
once or streamed from the database using server-side cursors.
.. deprecated:: 4.1
Using ``iterator()`` on a queryset that prefetches related objects without
providing the ``chunk_size`` is deprecated. In Django 5.0, an exception
will be raise.
With server-side cursors
^^^^^^^^^^^^^^^^^^^^^^^^