#32143: Use EXISTS to exclude multi-valued relationships
-------------------------------------+-------------------------------------
Reporter: Simon Charette | Owner: Simon
Type: | Charette
Cleanup/optimization | Status: closed
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"1c4f5f314e2b0c77b3fa0c75f703218e7e06f4be" 1c4f5f3]:
{{{
#!CommitTicketReference repository=""
revision="1c4f5f314e2b0c77b3fa0c75f703218e7e06f4be"
Refs #32143 -- Removed superflous constraints on excluded query.
The outer query reference is not necessary when alias can be reused and
can even be harmful by confusing query planers.
Refs #34597.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32143#comment:5>
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/01070188b988ef8d-a34053df-15c0-4c4e-98a5-eb39dc357d16-000000%40eu-central-1.amazonses.com.