#26780: Prefetch objects don't work with slices
-------------------------------------+-------------------------------------
Reporter: Ludwik Trammer | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: prefetch, slicing | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
As pointed out by others support for filter against window functions would
allow `prefetch_related_objects` to use `Rank(partition_by)` to support
this feature.
If someone wants to give a shot at solving this particular issue before
#28333 is resolved it should be doable by using a combination of
`Queryset.raw` and `Query.compile` combinations.
--
Ticket URL: <https://code.djangoproject.com/ticket/26780#comment:17>
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/0107018257486f4a-aa6a53b1-9dc1-4367-a47b-8e8b9f2820ab-000000%40eu-central-1.amazonses.com.