×

AUTONOMICALLY GENERATING A QUERY IMPLEMENTATION THAT MEETS A DEFINED PERFORMANCE SPECIFICATION

  • US 20080215535A1
  • Filed: 04/23/2008
  • Published: 09/04/2008
  • Est. Priority Date: 06/03/2004
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus comprising:

  • at least one processor;

    a memory coupled to the at least one processor;

    an access plan cache residing in the memory, the access plan cache including a plurality of entries, each entry including a performance specification for a corresponding query and an access plan for the corresponding query, the performance specification specifying a desired maximum execution time for the corresponding query; and

    a query optimizer residing in the memory and executed by the at least one processor, wherein the query optimizer determines time required to execute a query using an access plan stored in the access plan cache and compares the time required to execute the query with the performance specification corresponding to the query, wherein the query optimizer generates a new access plan if the time required to execute the query using the access plan stored in the access plan cache exceeds the performance specification corresponding to the query, wherein, if the query optimizer generates a new access plan that satisfies the performance specification corresponding to the query, the query optimizer stores the new access plan in an entry in the access plan cache that corresponds to the query and updates the performance specification corresponding to the query, and wherein, if the query optimizer cannot generate a new access plan that satisfies the performance specification corresponding to the query, the query optimizer selects a new access plan that had the best performance, stores the new access plan in the entry in the access plan cache that corresponds to the query, and uses the best performance to generate a new stored performance specification corresponding to the query.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×