#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):
@Simon
> so I'm not sure that comparing the effect of two distinct add_q call
should be the area of focus
Sure, I'm not saying that was the area of focus, just that it was some
interesting behaviour I saw that Query will try to demote if possible
based on existing inner joins (which appears to be done in `add_q()`)
--
Ticket URL: <https://code.djangoproject.com/ticket/34450#comment:8>
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/010701873c34d15b-a9b74331-5b62-411d-981b-3355775d2f25-000000%40eu-central-1.amazonses.com.