hottub.patents
US 6,330,552 B1#127611 Most CitedExpiredUnited States (USPTO)Utility

Database query cost model optimizer

134Forward Citations (#127611 Global)
5.4/yrCitation Velocity (#234575 Global)
20.87Citation PageRank (#310865 Global)
15Prior Art Cited
2Claims (2 Indep. · 0 Dep.)
0Drawings / Sheets

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)

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

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

References Cited — Backward Prior Art (15)

PatentTitleYearCitations
US 5,301,317 ASystem for adapting query optimization effort to expected execution time1994141
US 5,367,675 AComputer automated system and method for optimizing the processing of a query in a relational database system by merging subqueries with the query1994219
US 5,546,570 AEvaluation strategy for execution of SQL queries involving recursion and table queues199668
US 5,548,755 ASystem for optimizing correlated SQL queries in a relational database using magic decorrelation1996153
US 5,619,692 ASemantic optimization of query order requirements using order detection by normalization in a query compiler system1997102
US 5,630,120 AMethod to help in optimizing a query from a relational data base management system199754
US 5,689,696 AMethod for maintaining information in a database used to generate high biased histograms using a probability function, counter and threshold values199734
US 5,689,708 AClient/server computer systems having control of client-based application programs, and application-program control means therefor1997234
US 5,761,654 AMemory structure and method for tuning a database statement using a join-tree data structure representation, including selectivity factors, of a master table and detail table199865
US 5,765,146 AMethod of performing a parallel relational database query in a multiprocessor environment199875
US 5,875,445 APerformance-related estimation using pseudo-ranked trees199973
JP H11203288 ADatabase reference device—3
US 6,023,695 ASummary table management in a computer system2000162
US 6,026,391 ASystems and methods for estimating query response times in a computer system2000227
US 6,212,514 B1Data base optimization method for estimating query and trigger procedure costs200160

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.