Patents
US 7,383,246 B2#2290454 Most CitedExpiredUnited States (USPTO)Utility

System, method, and computer program product for progressive query processing

30Forward Citations (#2290454 Global)
1.7/yrCitation Velocity (#2868886 Global)
3.87Citation PageRank (#5015519 Global)
14Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method, system, and computer program product to make query processing more robust in the face of optimization errors. The invention validates the statistics and assumptions used for compiling a query as the query is executed and, when necessary, progressively re-optimizes the query in mid-execution based on the knowledge learned during its partial execution. The invention selectively places a number of CHECK operators in a query execution plan to validate the optimizer's cardinality estimates against actual cardinalities. Errors beyond a threshold trigger re-optimization, and the optimizer decides whether the old plan is still optimal and whether to re-use previously computed results. The invention addresses arbitrary SQL queries whose plans can contain sub-queries, updates, trigger checking, and view maintenance operations. The invention can handle concurrent update transactions or updates of common sub-expressions in a query execution plan without compromising consistency and isolation as locking information is tied to the record ID.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 30.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method for accelerating database query processing, comprising: determining during execution of a particular query whether continued execution of a particular query execution plan is worthwhile by calculating the amount of query execution remaining; placing a number of checkpoints in the particular query execution plan; computing the difference between estimated optimization parameter values and actual optimization parameter values at a given checkpoint to determine the significance of parameter estimation errors, by pushing the given checkpoint below a materialization po

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • A. Van Gelder. Multiple Join Size Estimation by Virtual Domains, Proceedings of the twelfth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS), 1993, p. 180-189.
  • D. D. Chamberlin, M. M. Astrahan, W. F. King et al. Support for Repetitive Transactions and Ad-Hoc Query in System R, ACM Transactions on Database Systems (TODS), vol. 6, n. 1, 1981, p. 70-94.
  • D. Donjerkovic and R. Ramakrishnan, Probabilistic Optimization of Top N Queries, Proceedings of the Twenty-fifth International Conference on Very Large Databases (VLDB'99), Sep. 1999, Edinburgh, Scotland, p. 411-422.
  • D.E. Simmen. T.Y. Leung, Y. Sun, Optimizing Database Queries Using Query Execution Plans Derived from Automatic Summary Table Determining Cost Based Queries. U.S. Appl. No. 09/502,820, filed May 18, 1999.
  • G. Lohman, Grammar-like Functional Rules for Represent Query Execution Plan Alternatives, Proceedings of the 1988 ACM SIGMOD International Conference on Management of Data, Chicago, Illinois, ACM Press, p. 18-27.