Query plan selection control using run-time association mechanism
Abstract
A system and method for creation, modification and/or use of plan guide(s) is provided. Plan guide(s) can be employed to optimize the performance of query(ies) when it is not possible and/or desirable to change the text of the query directly. Plan guides can be useful, for example, when a small subset of queries in a database application deployed from a third-party vendor is not performing as expected. Plan guides influence optimization of queries by attaching query hints to them. In accordance with an aspect of the subject invention, a query plan execution system is provided. The system includes an execution component, a query optimizer, and, a plan cache. Plan guides and other associated metadata are stored in a plan guide metadata store.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A query plan execution system comprising: a memory; one or more processors; a plan guide metadata store that stores one or more plan guides that are each associated with one or more queries, wherein each plan guide comprises one or more hints that are supplied by a user independently of the creation of and without modifying the associated one or more queries, wherein each plan guide is one of multiple types including object, SQL, and template types; and an execution environment that, upon receiving a query to be executed, accesses the plan guide metadata store to determine whether the query is
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- Antara Ghosh, Jignashu Parikh, Vibhunti Sengar, Jayant Haristsa, Plan Selection based on Query Clustering, 2002, ACM.
- Arun Marathe, Batch Compilation, Recompilation, and Plan Caching Issues in SQL Server 2005, http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx, last viewed Aug. 10, 2005.
- Execution Plan Caching and Reuse, Microsoft.com Library, SQL Server Architecture, http://www.msdn.microsoft.com/library/en-us/architec/8-ar-sa-4azp.asp?frame=true, last viewed Aug. 10, 2005.
- Oracle9i, SQL Reference, Release 2 (9.2), Oct. 2002, pp. 48-51.
- Timos K. Sellis, Multiple Query Optimization, ACM Transactions on Database Systems, vol. 13, No. 1, Mar. 1988, pp. 23-52.