Efficient multidimensional data aggregation operator implementation
Abstract
An efficient implementation of a multidimensional data aggregation operator that generates all aggregates and super-aggregates for all available values in a results set by first generating a minimal number of aggregates at the lowest possible system level using a minimal number of function calls, and second categorizing the aggregate function being applied and applying the aggregate function with the fewest possible function calls. The aggregates are generated from a union of roll-ups of the n attributes to the GROUP BY clause of the SELECT statement. The number of roll-ups are minimized by including a barrel shift of the attributes being rolled up. A scoreboard array of 2 n bits is updated during the roll-up and barrel shifting process to keep track of which roll-ups are complete and with are not yet complete. Generating super-aggregates is further optimized by identifying the type of aggregate function being applied and facilitating the most efficient application of the aggregate function. A lter -- super() function is implemented to facilitate the most efficient application of algebraic aggregate functions that require access to intermediate aggregate data that heretofore was no
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 243.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer readable medium containing computer executable instructions to perform a method for generating a data cube from a results set of a database query, said method comprising: identifying a roll-up string of attributes from said results set; generating at least one aggregate from said roll-up string by way of a minimum union of roll-up operator calls based on a barrel shift of said roll-up string; saving said at least one aggregate in said data cube; and generating at least one super-aggregate from said at least one aggregate by way of a minimum number of aggregation function calls
- Claim 2Independent Claim
A method according to claim I wherein said step of generating at least one aggregate
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 243 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- C. J. Date, "Aggregate Functions," Database Programming and Design, vol. 9 No. 4, Apr. 1996, pp. 17-19.
- C. J. Date, Aggregate Functions, Database Programming and Design, vol. 9 No. 4, Apr. 1996, pp. 17 19.
- J. Gray, A. Bossworth, A. Layman, H. Pirahesh, "DataCube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals" Proc. International Conf. On Data Engineering, IEEE Press, Feb. 1996, New Orleans.
- J. Gray, A. Bossworth, A. Layman, H. Pirahesh, DataCube: A Relational Aggregation Operator Generalizing Group By, Cross Tab, and Sub Totals Proc. International Conf. On Data Engineering, IEEE Press, Feb. 1996, New Orleans.
- Jim Gray et al., Data Cube: ARelational Aggregation Operator Generalizing Group By, Cross Tab and Sub Totals, Microsoft Research Advanced Technology Division, Microsoft Corporation, Technical Report: MSR TR 95 22, 5, Feb. 1995, Revised 17 Jul. 1995.