Combined sort and aggregation
Abstract
Innovative techniques are disclosed for performing a combined sort and aggregation operation involving eagerly performing aggregation while sorting. The techniques described herein enable an aggregation and a group-by operation to be performed using an amount of system memory that is far less than the system memory required to store all the data records being processed while minimizing the need to spill data to disk. This combined sort and aggregation operation has better performance than conventional techniques since system memory is used more efficiently. In certain embodiments, a combined sort and aggregation operation is disclosed that enables the efficient sorting and aggregation of data records when the desired aggregation function is composable (such as SUM, COUNT, MIN and MAX aggregate operations).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving, by a data processing system comprising one or more processors and associated memory, a request to apply an aggregate function to a plurality of records and to group results by values of a particular field of the plurality of records; determining, by the data processing system, a result for the request, wherein determining the result is performed by the data processing system using an amount of the memory that is less than an amount of memory needed for storing the plurality of records; and outputting, by the data processing system, the result as a response 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 (4 of 4 total)
References Cited — Backward Prior Art (22)
Non-Patent Literature (5)
- "Sorting Variable Length Records", IBM i7.2, Sorting and Merging Files, https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/rzase/cblsortvarlen.htm, retrieved on Jul. 26, 2017, 1 page.
- "Sorting Variable-Length Records-CA VM:SortTM-1.4-CA Technologies Documentation", documentation powered by DocOps, https://docops.ca.com/ca-vm-sort/1-4/en/using/sorting-andmerging-files/sorting-variable-length-records, retrieved on Jul. 25, 2017, 1 page.
- “Sorting Variable-Length Records—CA VM:SortTM—1.4—CA Technologies Documentation”, documentation powered by DocOps, https://docops.ca.com/ca-vm-sort/1-4/en/using/sorting-andmerging-files/sorting-variable-length-records, retrieved on Jul. 25, 2017, 1 page.
- Auger, et al., "Merge Strategies: from Merge Sort to TimSort", HAL archivepouvertes.fr, Dec. 9, 2015, hal-01212839v2, 15 pages.
- Rhone; Stefanie, "Oracle Fusion Middleware, User's Guide for Oracle Data Visualization Desktop", Oracle, E70158-02, Oct. 2016, 96 pages.