×

Automatic SQL tuning advisor

  • US 7,747,606 B2
  • Filed: 09/07/2004
  • Issued: 06/29/2010
  • Est. Priority Date: 09/06/2003
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method, comprising:

  • using a computer system which comprises at least one computer processor and is programmed for performing;

    receiving a database query language statement and performance information about the database query language statement at an optimizer;

    receiving a time budget for tuning the database query language statement;

    generating one or more tuning recommendations for the database query language statement,whereinthe one or more tuning recommendations are generated based at least in part upon the performance information with consideration of the time budget, the one or more tuning recommendations comprise one or more rewrites of database query language text for the database query language statement,the generating the one or more tuning recommendations further comprises;

    performing an automatic access path analysis to recommend one or more indices based at least in part on one or more data access patterns of the database query language statement and upon when the database query language statement performance is improved by replacing one or more existing access path by one or more new index access paths,performing an automatic structure analysis that generates one or more tuning recommendations for one or more rewrites for the database query language statement, andperforming an automatic statistics analysis that generates adjustment factors to correct one or more missing or stale statistics,at least one of the one or more rewrites of the database query language text is not semantically equivalent to the database query language text of the database query language statement in that the at least one of the one or more rewrites of the database query language text comprises a second query operator function which is used to replace a different, first query operation function in the database query language text of the database query language statement and the one or more rewrites of the database query language text produces an equivalent query result as the database query language text of the database query language statement does, andat least one of the one or more tuning recommendations is associated with a rationale to help a user understand the at least one of the one or more tuning recommendations, in which the rationale comprises information about an execution plans before applying the at least one of the one or more tuning recommendations and one or more first execution plans that are generated after applying the at least one of the one or more tuning recommendations; and

    displaying the one or more tuning recommendations on a display device or storing the one or more tuning recommendations in data structures configured for the tuning recommendations on a computer readable storage medium of the computer system.

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