#34450: Lookup expressions across foreign keys introduce extra joins
-------------------------------------+-------------------------------------
Reporter: Roman Odaisky | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Sanders):
Oh and it also raises the question of whether
{{{
Parent.objects.filter(Exact(F("child__x"), "x")
}}}
should be demoted (produce an inner join) because at the moment
`build_filter()` doesn't attempt to find any "needed inners" thus
`_add_q()` doesn't have anything to try to demote to.
🙂
--
Ticket URL: <https://code.djangoproject.com/ticket/34450#comment:9>
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/010701873c77dbf8-d6dc56a0-944a-4a75-8391-9a22d4844bbd-000000%40eu-central-1.amazonses.com.