#28296: Add support for aggregation through subqueries
-------------------------------------+-------------------------------------
Reporter: László Károlyi | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
> A lazy dict or AggregateResult doesn't have to be too complicated.
Providing __getitem__, __contains__, etc.. like UserDict would do the
trick.
The main challenge here is that it changes the nature of `count()` and
`aggregate()` methods so that they no longer perform a query
automatically. This is certainly going to break a few tests but it should
be possible to provide shims through `__int__` for `count()` and `dict`
subclassing for `aggregate`.
--
Ticket URL: <https://code.djangoproject.com/ticket/28296#comment:8>
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/065.11652e283064d46a48f3291d26b65792%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.