Patents
US 8,060,495 B2#10851347 Most CitedActiveUnited States (USPTO)Utility

Query execution plan efficiency in a database management system

10Forward Citations (#10851347 Global)
0.7/yrCitation Velocity (#11513813 Global)
1.51Citation PageRank (#22606208 Global)
29Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

An apparatus, system, and method are disclosed for improving query execution plan efficiency in a database management system. The present invention binds both static database queries and dynamic database queries to new query execution plans (QEPs) that produce the same result set as a former QEP bound to the database queries. Next, the present invention identifies one of the former QEPs and the new QEP as an active QEP and automatically collects execution statistics for one of the former QEPs and the new QEP. Finally, the present invention automatically selects one of the former QEPs and the new QEP as the active QEP in response to completion of the automatic collection of execution statistics, the active QEP selected such that the automatically selected QEP provides optimal execution performance based on performance criteria in comparison to the automatically unselected QEP, the active QEP selected based on the execution statistics.

Interactive Citation Constellation Global Citation Ranking

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

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method for improving query execution plan efficiency in a database management system, the method comprising: receiving a qualified database query, the database query comprising one of a static database query and a dynamic database query; retrieving a stored query execution plan (QEP) for the database query in response to a QEP repository associating the database query with an active QEP; generating a new QEP for the database query in response the QEP repository failing to associate the database query with an active QEP, and storing the new QEP in the QEP repository, designating the new QEP a

  2. Claim 2Depends on #1

    The method claim 1 , wherein the QEP repository is configured to store the active QEP and at least one inactive QEP, the method furthe

Technical Overview & Description

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

References Cited — Backward Prior Art (29)

PatentTitleYearCitations
US 5,940,819 AUser specification of query access paths in a relational database management system199998
US 6,006,220 ADetermining the optimal access path for a query at execution time using an actual value for each variable in a query for estimating a filter factor1999119
US 6,219,660 B1Access path selection for SQL with variables in a RDBMS2001102
US 2004019587 A1Method and device for processing a query in a database management system—59
US 2004039729 A1Metadata manager for database query optimizer—110
US 6,763,359 B2Learning from empirical results in query optimization200499
US 2004181521 A1Query optimization technique for obtaining improved cardinality estimates using statistics on pre-defined queries—64
US 2004243555 A1Methods and systems for optimizing queries through dynamic and autonomous database schema analysis—123
US 2005065921 A1System and method for performing a query in a computer system to retrieve data from a database—48
US 2005091196 A1Optimization of queries using retrieval status of resources used thereby—30
US 2005097091 A1SQL tuning base—33
US 2005177557 A1Automatic prevention of run-away query execution—80
US 6,985,904 B1Systems and methods for sharing of execution plans for similar database statements2006153
US 2006074874 A1Method and apparatus for re-evaluating execution strategy for a database query—68
US 2006106839 A1Maintain optimal query performance by presenting differences between access plans—20
US 2006129542 A1Optimized database appliance—14
US 7,080,062 B1Optimizing database queries using query execution plans derived from automatic summary table determining cost based queries2006107
US 2006212428 A1Analysis of performance data from a relational database system for applications using stored procedures or SQL—39
US 7,275,051 B2Method and system for reducing host variable impact on access path selection200719
US 2007271218 A1Statistics collection using path-value pairs for relational databases—23

Non-Patent Literature (5)

  • Final Office Action Received from USPTO, U.S. Appl. No. 12/395,836, Received Aug. 26, 2011.
  • http://www.orafaq.com/wiki/Oracle-database-Performance-Tuning-FAQ , See section: "My query was fine last week and now it is slow. Why?"
  • http://www.orafaq.com/wiki/Oracle—database—Performance—Tuning—FAQ <retrieved on Oct. 25, 2008>, See section: "My query was fine last week and now it is slow. Why?"
  • Office Action received from USPTO, U.S. Appl. No. 12/395,836, Mar. 18, 2011.
  • Purcell et al., "Insurance for Your Access Paths Across REBINDS", Intelligent Optimizer, www.idug.org , pp. 37-39, available from as early as Nov. 20, 2007.