Learning from empirical results in query optimization
Abstract
An optimizer function of a Relational Database Management System (RDBMS) generates alternative query execution plans (QEPs) for executing a query, provides an execution model of each of the QEPs, chooses one of the QEPs for execution based on the model associated therewith, and exploits an empirical measurement from the execution of the chosen QEP to validate the model associated therewith, by determining whether the model is in error, and by computing one or more adjustments to the model to correct the determined error.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 99.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of performing a query in a computer system to retrieve data from a database stored on the computer system, the method comprising: (a) generating a plurality of query execution plans (QEPs) for the query; (b) providing an execution model of each of the QEPs; (c) choosing one of the QEPs for execution based on the model associated therewith; and (d) using a feedback loop to monitor the execution of the chosen QEP, to analyze information from the monitored execution, to compute adjustments to the model using the analyzed information, and in exploit the computed adjustments to refine the
- Claim 2Depends on #1
The method of claim 1 , wherein the model comprises a cost estimate based on statistics for distinct values.
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 99 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- A. Aboulnaga and S. Chaudhuri, Self-tuning Histograms: Building Histograms Without Looking at Data, SIGMOD Conference 1999.
- A. Van Gelder, Multiple Join Size Estimation by Virtual Domains (extended abstract), Procs. of ACM PODS Conference, Washington, D.C., May 1993, pp. 180-189.
- A.N. Swami, K. B. Schiefer, On the Estimation of Join Result Sizes, EDBT 1994, pp. 287-300.
- C. Lynch, Selectivity Estimation and Query Optimization in Large Databases with Highly Skewed Distributions of Column Values, Proceedings of the 14th Int. Conf. On Very Large Databases, 1988.
- C. M. Chen and N. Roussopoulos, Adaptive Selectivity Estimation Using Query Feedback, SIGMOD Conference 1994.