Using overlapping partitions of data for query optimization
Abstract
A method and apparatus for executing queries on a set of data that has been partitioned into a plurality of partitions based on a partitioning key is provided. A query is received that includes a reference to a second key. The second key is not part of the partitioning key but has a predetermined correlation with the partitioning key. This second key is referred to as an overlapping partition key. A subset of the plurality of partitions is selected to be scanned based on the reference to the second key and the predetermined correlation with the partitioning key. The query is then executed by scanning only those partitions of the plurality of partitions that belong to the subset of partitions. The overlapping partition key provides for reduced query execution time even when the partitioning key is not directly involved in the query. Specifically, the overlapping partition key permits a partial table scan in situations that would require a fill table scan with partitioning alone.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 135.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for executing queries that specify data from a set of data that has been partitioned into a plurality of partitions based on a first key, the method comprising the computer implemented steps of: receiving a query that includes a reference to a second key, wherein said second key is not part of said first key but has a predetermined correlation with said first key; selecting a subset of said plurality of partitions to scan based on said reference to said second key and said predetermined correlation with said first key; and executing said query by scanning only those partitions of
- Claim 2Depends on #1
The method of claim 1 further comprising the steps of: determining a set of query predicates from said query; adding said set of query predicates to a set of selecti
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 135 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (4)
- Alon Y. Levy, Inderpal Singh Mumick, Yehoshua Sagiv, Query Optimization by Predicate Move Around, Proceedings of the 20 th VLDB Conference, Santiago, Chile, 1994, pp. 96 107.
- Alon Y. Levy, Inderpal Singh Mumick, Yehoshua Sagiv, Query Optimization by Predicate Move-Around, Proceedings of the 20th VLDB Conference, Santiago, Chile, 1994, pp. 96-107.
- David J. DeWitt, Shahram Ghandeharizadeh, Donovan A. Schneider, Allan Bricker, Hui I Hsiao, Rick Rasmussen, The Gamma Database Machine Project, IEEE Transactions on Knowledge and Data Engineering , vol. 2, No. 1, Mar. 1990, pp. 44 62.
- David J. DeWitt, Shahram Ghandeharizadeh, Donovan A. Schneider, Allan Bricker, Hui-I Hsiao, Rick Rasmussen, The Gamma Database Machine Project, IEEE Transactions on Knowledge and Data Engineering, vol. 2, No. 1, Mar. 1990, pp. 44-62.