Database query cost model optimizer
Abstract
A method and apparatus is disclosed for accurately estimating the cost of a database query, including the total computer resources used and estimated elapsed time for the production of a first row and last row of an operator involved in the query and/or the total resources used and elapsed time for returning the overall response to a database query. The method and apparatus accurately accounts for resources used and elapsed time associated with blocking operators, such as sorts and hash joins, which cannot produce a first row until they have completed their operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 134.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A process for predicting an elapsed time for executing a query, wherein a plan for executing the query includes a plurality of operators forming a query tree and at least one operator is a blocking operator, comprising: assigning a preliminary cost to each operator; combining the costs of at least some of the operators, including the at least one blocking operator; and converting the combined costs into a predicted elapsed time to execute the plan; wherein the predicted elapsed time is the time predicted for returning the first row of the query's response.
- Claim 2Independent Claim
A process for predicting an elapsed time for executing a query, wherein a plan for executing the query includes a plurality of operators forming a query tree and at least one operator is a blocking operator, comprising: assigning a prelim
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 134 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (5)
- Article by Clifford A. Lynch entitled "Selectivity Estimation and Query Optimization in Large Databases with Highly Skewed Distributions of Column Values" published by University of California dated 1988 pp. 240-251.
- Article by Haas et al. entitled "Sampling-Based Estimation of the Number of Distinct Values of an Attribute" published by Proceedings of the 21st VLDB Conference dated 1995 pp. 311-321.
- Article by Leonard D. Shapiro entitled "Join Processing in Database Systems with Large Main Memories" published by ACM Transactions on Database Systems dated 1986, vol. 11, No. 3, pp. 239-264.
- Article by Mackert et al. entitled "R* Optimizer Validation and Performance Evaluation for Distributed Queries" published by Proceedings of the 12th International Conference on Very Large Databases, dated 1986 pp. 149-159.
- Article by Piatetsky-Shapiro et al. entitled "Accurate Estimation of the Number of Tuples Satisfying a Condition" published by ACM dated 1984 pp. 256-276.