#23771: Optimisation idea for Paginator object
-------------------------------------+-------------------------------------
Reporter: GP89 | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 1.6
(models, ORM) |
Severity: Normal | Resolution:
Keywords: paginator | Triage Stage: Accepted
optimization performance |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Doing this automatically and correctly is really tricky as #28477 proved
(think of annotations spanning multi-valued relationships, `values`
grouping by annotations before aggregation) so I'd be +1 on adding a way
to pass `count` or `total` to `Paginator` and a way to clear annotations
but we'd have to document that the later is not panacea.
--
Ticket URL: <https://code.djangoproject.com/ticket/23771#comment:7>
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/062.ad170915c3c8e36235919e9b5ab007b1%40djangoproject.com.