#25464: Allow skipping IN clause on prefetch queries
-------------------------------------+-------------------------------------
Reporter: ecederstrand | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by ecederstrand):
Thanks. Which profiling would you like? I'm working on PostgreSQL and
could provide EXPLAIN on both types of queries.
I'll try to add documentation some tests to
/django/tests/prefetch_related/
When prefetching is done, the prefetched objects are matched with the
instances by pk. My basic gut feeling is that extraneous rows should
simply be ignored, for cases where it's simply more efficient to fetch a
little more than we need.
--
Ticket URL: <https://code.djangoproject.com/ticket/25464#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.4506d11a6757f0c435160c68308e1df1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.