Query plan selection control using run-time association mechanism
First Claim
1. A query plan execution system comprising:
- a plan guide metadata store that stores information associated with one or more plan guides, a plan guide stores information that can influence optimization of a query; and
, an execution environment that determines whether a plan guide exists for a particular entity, and, if a plan guide exists, employs the plan guide when optimizing the query.
3 Assignments
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A query plan execution system comprising:
-
a plan guide metadata store that stores information associated with one or more plan guides, a plan guide stores information that can influence optimization of a query; and
,an execution environment that determines whether a plan guide exists for a particular entity, and, if a plan guide exists, employs the plan guide when optimizing the query. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method of executing a query within an entity comprising:
-
receiving information associated with execution of the entity;
determining whether a plan guide exists for a statement of the entity;
modifying a query based on the plan guide, if one exists; and
,optimizing the modified query to produce a query plan. - View Dependent Claims (17, 18, 19)
-
-
20. A data packet transmitted between two or more computer components that facilitates query optimization, the data packet comprising:
a plan guide, the plan guide comprising a plan guide name field, a type field, a parameter field and a hint field.
Specification