Patents
US 8,812,486 B2#44931420 Most CitedActiveUnited States (USPTO)Utility

Determining validity ranges of query plans based on suboptimality

2Forward Citations (#44931420 Global)
0.2/yrCitation Velocity (#36881891 Global)
0.89Citation PageRank (#48932650 Global)
25Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method for approximating a validity range for a domain of cardinalities of input to an optimal query plan is provided. Such a validity range is iteratively approximated using a modified Newton-Raphson method to find roots of cost functions for optimal and alternative query plans, respectively. The Newton-Raphson method is combined with a method of incrementing roots of cost functions, known as input cardinalities, such that discontinuous and non-differentiable points in cost functions are avoided. In this manner, input cardinalities remain within a domain for which a valid range can be specified. Additionally, a robustness measure is determined by a sensitivity analysis performed on an approximated validity range. Using a robustness measure provided by a sensitivity analysis and resultant validity range and, query plan sub-optimality detection is simplified, re-optimization is selectively triggered, and robustness information is provided to a system or user performing corrective actions.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for selecting an optimal query plan for the execution of a database query, said method comprising: a. comparing a first query plan chosen by a query optimizer to at least one structurally equivalent query plan, said comparison made with respect to cost as a function of input row, outer cardinality, said first query plan formulated based on a graph of query plan operators connected by directed edges, with each edge d providing a set of rows to an operator o in a given query plan; b. developing a robustness measure for each of said first query plan and at least one structurally equivale

Technical Overview & Description

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

Cited By — Indexed Forward Citations (2 of 2 total)

References Cited — Backward Prior Art (25)

PatentTitleYearCitations
US 5,761,653 AMethod for estimating cardinalities for query processing in a relational database management system1998137
US 5,822,747 ASystem and method for optimizing database queries1998167
US 5,926,820 AMethod and system for performing range max/min queries on a data cube1999169
US 6,092,062 ARelational database query optimization to perform query evaluation plan, pruning based on the partition properties2000295
US 6,122,627 ASystem, method, and program for object building in queries over object views2000401
US 6,272,487 B1Query optimization through the use of multi-column statistics to avoid the problems of non-indexed column correlation2001124
US 6,363,371 B1Identifying essential statistics for query optimization for databases2002119
US 2002198867 A1Learning from empirical results in query optimization—191
US 6,510,422 B1Cost based materialized view selection for query optimization200380
US 2003055813 A1Query optimization by sub-plan memoization—87
US 2003061244 A1System and method for database query optimization—44
US 2003167258 A1Redundant join elimination and sub-query elimination using subsumption—59
US 2003172059 A1Database system providing methodology for eager and opportunistic property enforcement—108
US 6,625,593 B1Parallel query optimization strategies for replicated and partitioned tables2003117
US 2003187831 A1Database query optimizer framework with dynamic strategy dispatch—58
US 2004010488 A1Method and apparatus for exploiting statistics on query expressions for optimization—100
US 6,775,681 B1Evaluation of grouping sets by reduction to group-by clause, with or without a rollup operator, using temporary tables2004103
US 2004181521 A1Query optimization technique for obtaining improved cardinality estimates using statistics on pre-defined queries—64
US 7,111,025 B2Information retrieval system and method using index ANDing for improving performance200615
US 7,139,749 B2Method, system, and program for performance tuning a database query200642
US 7,185,000 B1Method and apparatus for presenting query plans200759
US 7,194,451 B2Database monitoring system200750
US 7,877,372 B1Method and system for querying tables stored on multiple processing modules20113
US 7,890,491 B1Query optimization technique for obtaining improved cardinality estimates using statistics on automatic summary tables201132
US 8,290,935 B1Method and system for optimizing database system queries201213

Non-Patent Literature (5)

  • Bruno et al.; "Exploiting Statistics on Query Expression for Optimization;" ACM SIGMOD 2002; Jun. 4-6, 2002; pp. 263-274.
  • Chirkova et al.; "A Formal Perspective on the View Selection Problem" Proceedings of the 27th VLDB Conference; 2001.
  • Markl et al.; "Learning Table Access Cardinalities with LEO;" SIGMOD '02; Jun. 3-6, 2002; p. 613.
  • Rjaibi et al.; "Incremental Cardinality Estimation for a Set of Data Values;" Jul. 15, 2002.
  • Sitllger et al.; "LEO-DB2's LEarning Optimizer;" Proceedings of the 27th VLDB Conference; 2001.