Determining validity ranges of query plans based on suboptimality
Abstract
A method for approximating a validity range for a domain of cardinalities of input to an optimal query plan is provided. Such a validity range is iteratively approximated using a modified Newton-Raphson method to find roots of cost functions for optimal and alternative query plans, respectively. The Newton-Raphson method is combined with a method of incrementing roots of cost functions, known as input cardinalities, such that discontinuous and non-differentiable points in cost functions are avoided. In this manner, input cardinalities remain within a domain for which a valid range can be specified. Additionally, a robustness measure is determined by a sensitivity analysis performed on an approximated validity range. Using a robustness measure provided by a sensitivity analysis and resultant validity range and, query plan sub-optimality detection is simplified, re-optimization is selectively triggered, and robustness information is provided to a system or user performing corrective actions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for selecting an optimal query plan for the execution of a database query, said method comprising: a. comparing a first query plan chosen by a query optimizer to at least one structurally equivalent query plan, said comparison made with respect to cost as a function of input row, outer cardinality, said first query plan formulated based on a graph of query plan operators connected by directed edges, with each edge d providing a set of rows to an operator o in a given query plan; b. developing a robustness measure for each of said first query plan and at least one structurally equivale
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,229,358 B2 | Optimizer problem determination | 2019 | 2 |
| US 10,229,359 B2 | Optimizer problem determination | 2019 | 4 |
References Cited — Backward Prior Art (25)
Non-Patent Literature (5)
- Bruno et al.; "Exploiting Statistics on Query Expression for Optimization;" ACM SIGMOD 2002; Jun. 4-6, 2002; pp. 263-274.
- Chirkova et al.; "A Formal Perspective on the View Selection Problem" Proceedings of the 27th VLDB Conference; 2001.
- Markl et al.; "Learning Table Access Cardinalities with LEO;" SIGMOD '02; Jun. 3-6, 2002; p. 613.
- Rjaibi et al.; "Incremental Cardinality Estimation for a Set of Data Values;" Jul. 15, 2002.
- Sitllger et al.; "LEO-DB2's LEarning Optimizer;" Proceedings of the 27th VLDB Conference; 2001.