#34331: Support prefetch_related() with Queryset.aiterator()
-------------------------------------+-------------------------------------
Reporter: Barry | Owner: nobody
Johnson |
Type: New | Status: new
feature |
Component: Database | Version: 4.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Asynchronously iterating through a QuerySet that contains a
prefetch_related definition is not supported in the alpha release of 4.2,
but would be a quite useful feature.
If the iterator is chunked, related objects could be prefetched in a
manner much like within QuerySet.iterator(), as long as the call to
prefetch_related_objects is wrapped by sync_to_async().
--
Ticket URL: <https://code.djangoproject.com/ticket/34331>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018640bca208-1c162da5-5965-4ed5-a499-9000c1e03c42-000000%40eu-central-1.amazonses.com.