#27646: Group by modifiers, OLAP functionality
-------------------------------------+-------------------------------------
Reporter: Mads | Owner: nobody
Jensen |
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords: olap rollup orm
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
PostgreSQL 9.5 introduced `cube`, `grouping sets` and `rollup`.
MySQL/MariaDB supports the `rollup`-operation for aggregations. Oracle
(obviously) also supports `rollup`, `grouping sets` and `cube`. I suggest
adding methods in `QuerySet` for this, feature-flags to indicate level of
support, and either new expressions for the different `rollup`-syntax, or
amend the operations of the backends for this. The syntax is slightly
different in MySQL/MariaDB, as it uses `WITH ROLLUP`, rather than
`ROLLUP`.
https://oracle-base.com/articles/misc/rollup-cube-grouping-functions-and-
grouping-sets
http://dev.mysql.com/doc/refman/5.7/en/group-by-modifiers.html
https://www.postgresql.org/docs/current/static/queries-table-
expressions.html#QUERIES-GROUPING-SETS
--
Ticket URL: <https://code.djangoproject.com/ticket/27646>
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/053.e7ebe1cdb4c3bd883ec3bd19da66f206%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.