Patents
US 6,763,359 B2#241837 Most CitedExpiredUnited States (USPTO)Utility

Learning from empirical results in query optimization

99Forward Citations (#241837 Global)
4.5/yrCitation Velocity (#352602 Global)
16.04Citation PageRank (#482940 Global)
16Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

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)

  1. 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

  2. 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 ↗

References Cited — Backward Prior Art (16)

PatentTitleYearCitations
US 5,412,806 ACalibration of logical cost formulae for queries in a heterogeneous DBMS using synthetic database1995171
US 5,546,576 AQuery optimizer system that detects and prevents mutating table violations of database integrity in a query before execution plan generation1996167
US 5,619,692 ASemantic optimization of query order requirements using order detection by normalization in a query compiler system1997102
US 5,806,061 AMethod for cost-based optimization over multimeida repositories1998288
US 5,918,232 AMultidimensional domain modeling method and system1999539
US 5,978,789 AEfficient hypothetical query evaluation in a database system199943
US 5,995,959 AMethod and system for network information access199987
US 6,092,062 ARelational database query optimization to perform query evaluation plan, pruning based on the partition properties2000295
US 6,205,441 B1System and method for reducing compile time in a top down rule based system using rule heuristics based upon the predicted resulting data flow2001122
US 6,330,552 B1Database query cost model optimizer2001134
US 6,339,768 B1Exploitation of subsumption in optimizing scalar subqueries200258
US 6,421,663 B1Optimization of joined table expressions by extended access path selection200238
US 6,449,618 B1Real-time event processing system with subscription model2002143
US 2002143754 A1Prime implicates and query optimization in relational databases—57
US 6,510,422 B1Cost based materialized view selection for query optimization200380

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.