Partial pre-aggregation in relational database queries
Abstract
A partial pre-aggregation database operation improves processing efficiency of database queries by reducing the number of records input into a subsequent database operation, provided the query includes a final aggregation. A query optimizer is provided to determine when it is economical to partially pre-aggregate data records and when it is not. The partial pre-aggregation creates a record store in memory as input records are received. The record store is then used by another database operator, which saves the other database operator from having to re-create the record store.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of processing a database query, wherein the database query comprises a join operator and an aggregation operator, the method comprising: inputting one or more records into a single record store memory, wherein the one or more records represent one or more rows of a table, the table having columns representing one or more fields; determining a value of a column associated with an aggregation operator; determining a value of a column associated with a join operator; determining when the value of the column associated with the aggregation operator is equivalent to th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- Chaudhuri, et al., "Including Group-By in Query Optimization," VLDB Conference, 1994, pp. 13.
- Gray, et al., "Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals", 1995, pp. 10.
- Knuth, "The Art of Computer Programming", vol. 2, Mar. 27, 2005, pp. 15.
- Larson, "Grouping and Duplicate Elimination: Benefits of Early Aggregation", Dec. 20, 1997, pp. 26.
- O'Neil, et al., "The LRU-K Page Replacement Algorithm For Database Disk Buffering", ACM, 1993, pp. 1-10.