Plan caching using density-based clustering
Abstract
A query plan predictor receives a query instance according to a query template having a set of parameters. The query plan predictor determines a plan space point for the query instance which is based upon the set of parameters. The query plan predictor predicts a predicted query plan for the plan space point, which is selected from a map of query plans according to a confidence threshold from a plan cache that includes at least one histogram. Each histogram is representative of a cached query plan in the plan cache combined with a previously-selected locality-sensitive hashing function. The histogram stores a frequency distribution of a mapping of sample plan points for the cached query plan by the locality-sensitive hashing function.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving, by at least one processing device, a query instance according to a query template having a set of parameters; determining, by the at least one processing device, a plan space point for the query instance, the plan space point based upon the set of parameters; and predicting, by the at least one processing device, a predicted query plan for the plan space point based upon precision, the precision being a ratio of a number of correct predictions to a number of NULL-free predictions, the predicted query plan selected from a map of query plans according to a confide
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 (1)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2008222093 A1 | Automatically and adaptively determining execution plans for queries with parameter markers | — | 60 |
Non-Patent Literature (5)
- Abhirama, M. et al., "On the Stability of Plan Costs and the Costs of Plan Stability," Proceedings of the VLDB Endowment, vol. 3, No. 1, 2010, Singapore, pp. 1137-1148.
- Asano, T. et al., "Space-filling curves and their use in the design of geometric data structures," Theoretical Computer Science, vol. 181, No. 1, Jul. 15, 1997, pp. 3-15.
- Babcock, B. et al., "Towards a Robust Query Optimizer: A Principled and Practical Approach," SIGMOD 2005, Jun. 14-16, 2005, pp. 119-130.
- Bizarro, P. et al., "Progressive Parametric Query Optimization," IEEE Transactions on Knowledge and Data Engineering, vol. 21, No. 4, Apr. 2009, pp. 582-594.
- Chaudhuri, S. et al., "Variance Aware Optimization of Parameterized Queries" SIGMOD '10, Jun. 6-10, 2010, pp. 531-542.