Query execution plan efficiency in a database management system
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)
- 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
- 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 ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (29)
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.