Method for index tuning of a SQL statement, and index merging for a multi-statement SQL workload, using a cost-based relational query optimizer
First Claim
Patent Images
1. A method comprising:
- identifying a set of high load database query language statements;
for each statement in the set, performing an optimization process on the statement;
during the optimization process, generating a set of candidate indexes which could be used to improve an execution plan for the statement;
selecting a subset from the set of candidate indexes using a model to remove expensive indexes;
identifying an index in the subset that can satisfy a different statement;
consolidating the identified index in the subset with an index for the different statement; and
determining an execution plan for the statement using the subset of indexes.
1 Assignment
0 Petitions
Accused Products
Abstract
An access structure analysis method is interspersed with the query optimization process. The method can determine the ideal combination of access structures, including both materialized views and indexes, for a given database workload. The interspersed structure analysis method can include advanced transformations like view merging, star transformation, bitmap access plans, query rewrite using materialized views, for example. The method may be performed using the query optimizer'"'"'s rules as heuristics to guide the index candidate generation process.
295 Citations
8 Claims
-
1. A method comprising:
identifying a set of high load database query language statements;
for each statement in the set, performing an optimization process on the statement;
during the optimization process, generating a set of candidate indexes which could be used to improve an execution plan for the statement;
selecting a subset from the set of candidate indexes using a model to remove expensive indexes;
identifying an index in the subset that can satisfy a different statement;
consolidating the identified index in the subset with an index for the different statement; and
determining an execution plan for the statement using the subset of indexes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
Specification