#26898: annotate() with two Count('related_object') gives both as the bigger one
-------------------------------------+-------------------------------------
Reporter: SonOfLilit | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 1.9
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: count,annotate | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by charettes):
* status: new => closed
* resolution: => duplicate
Comment:
This is a [https://docs.djangoproject.com/en/1.9/topics/db/aggregation
/#combining-multiple-aggregations document caveat] of the ORM when
combining multiple aggregations as JOIN are used instead of subqueries
(see #10060).
--
Ticket URL: <https://code.djangoproject.com/ticket/26898#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/068.36e8855c7a13e70cde9a19b15926a6ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.