#35300: Simple COUNT without OUTER JOIN
-------------------------------------+-------------------------------------
Reporter: Chrea | Owner: nobody
Chanchhunneng |
Type: New | Status: new
feature |
Component: | Version: 4.2
Uncategorized | Keywords: reduce counting
Severity: Normal | time,
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
as in django query, we support `Count() in db.model` and
`queryset.count()`. But the problem are `Count()` creates the `LEFT OUTER
JOIN` and `queryset.count()` does not support `OuterRef("pk")`.
I hope there is a way to just simply count without `LEFT OUTER JOIN` to
reduce the query time.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35300>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.