#35256: Strange/duplicate join clauses on queries with filter and annotations
-------------------------------------+-------------------------------------
Reporter: Bálint Balina | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: annotate filter | Triage Stage:
join | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* resolution: => duplicate
* status: new => closed
Comment:
Pretty sure this is a duplicate of #15049 without the aggregation part.
The TL;DR is that `filter` won't reuse existing JOINs but `annotate` will.
Changing it now is non trivial as there are legitimate reasons for not
doing so which makes be believe we need an optin mechanism when doing
either about JOIN reuse.
--
Ticket URL: <https://code.djangoproject.com/ticket/35256#comment:1>
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/0107018de64c816f-e41f051b-9666-4dcc-a973-fd0fce1b00c1-000000%40eu-central-1.amazonses.com.