SQL tuning base
First Claim
Patent Images
1. An article of manufacture comprising a volatile or non-volatile computer readable storage medium storing a system for tuning database query language statements, comprising:
- a tuning base containing tuning information for a database query language statement, the tuning information comprising;
trace information for the database query language statement, whereinthe trace information comprises statistics of a database object for the database query language statement, wherein the statistics in the trace information are adjusted to tune execution of the database query language statement when the database query language statement is compiled or executed; and
a signature which is generated during compilation of the database query language statement and is used to identify the trace information for the database query language statement; and
a query optimizer that tunes the database query language statement at least by retrieving at least the tuning information from the tuning base during compilation of the database query language statement, based at least in part the signature for the database query language statement, whereinthe query optimizer tunes the database query language statement at least by modifying a compiled database query statement of the database query language statement to include at least a part of the tuning information for the execution of the compiled database query statement with an execution plan, andthe query optimizer adjusts the statistics in the trace information to tune the database query language statement, by using one or more statistics adjustment hints.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer readable medium storing a database query language statement tuning base in a tuning base memory location is disclosed. The tuning base includes tuning information for one or more query language statements. The tuning information for each statement includes one or more tuning actions for the statement, and a signature to allow an optimizer to identify the one or more tuning actions for the statement.
137 Citations
27 Claims
-
1. An article of manufacture comprising a volatile or non-volatile computer readable storage medium storing a system for tuning database query language statements, comprising:
-
a tuning base containing tuning information for a database query language statement, the tuning information comprising; trace information for the database query language statement, wherein the trace information comprises statistics of a database object for the database query language statement, wherein the statistics in the trace information are adjusted to tune execution of the database query language statement when the database query language statement is compiled or executed; and a signature which is generated during compilation of the database query language statement and is used to identify the trace information for the database query language statement; and a query optimizer that tunes the database query language statement at least by retrieving at least the tuning information from the tuning base during compilation of the database query language statement, based at least in part the signature for the database query language statement, wherein the query optimizer tunes the database query language statement at least by modifying a compiled database query statement of the database query language statement to include at least a part of the tuning information for the execution of the compiled database query statement with an execution plan, and the query optimizer adjusts the statistics in the trace information to tune the database query language statement, by using one or more statistics adjustment hints. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer implemented method for retrieving tuning information for a database query language statement, the method comprising:
-
receiving a signature, the signature being generated based on a database query language statement during compilation of the database query language statement, wherein the signature allows an optimizer at a database server to identify trace information for the database query language statement for retrieving the tuning information during the compilation of the database query language statement, and the trace information comprises statistics of a database object for the database query language statement; determining, by using a processor, whether trace information for the database query language statement is available based at least in part upon the signature; tuning the database query language statement at least by retrieving the tuning information based at least in part upon the signature for the database query language statement from a tuning base, and further by modifying a compiled database query statement of the database query language statement to include at least a part of the tuning information for execution of the compiled database query statement with an execution plan; and adjusting the statistics in the trace information, which is used to further tune the database query language statement, by using one or more statistics adjustment hints. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A system for retrieving tuning information for a database query language statement, the system comprising:
a hardware processor for performing; receiving a signature, the signature being generated based on a database query language statement during compilation of the database query language statement, wherein the signature allows an optimizer at a database server to identify trace information for the database query language statement for retrieving the tuning information during the compilation of the database query language statement, and the trace information comprises statistics of a database object for the database query language statement; determining, by using a processor, whether trace information for the database query language statement is available based at least in part upon the signature; tuning the database query language statement at least by retrieving the tuning information based at least in part upon the signature for the database query language statement from a tuning base, and further by modifying a compiled database query statement of the database query language statement to include at least a part of the tuning information for execution of the compiled database query statement with an execution plan; and adjusting the statistics in the trace information, which is used to further tune the database query language statement, by using one or more statistics adjustment hints. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27)
Specification