×

Method for index tuning of a SQL statement, and index merging for a multi-statement SQL workload, using a cost-based relational query optimizer

  • US 8,825,629 B2
  • Filed: 09/07/2004
  • Issued: 09/02/2014
  • Est. Priority Date: 09/06/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • identifying a set of high load database query language statements from a workload by performing a comparison between performance information for query language statements in the workload, wherein the workload comprises query language statements;

    for each statement in the set,performing an optimization process on the statement;

    determining an access structure for an advanced transformation of the statement;

    during the optimization process, generating a set of candidate indexes which could be used to improve an execution plan for the statement, wherein the set of candidate indexes comprises index candidates for the access structure;

    selecting a subset from the set of candidate indexes based at least in part on a determination of whether an index maintenance cost exceeds a non-zero threshold or not;

    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;

    determining an execution plan using a processor for the statement using the subset of indexes; and

    storing the execution plan in a medium.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×