×

Plan caching using density-based clustering

  • US 8,996,504 B2
  • Filed: 05/24/2012
  • Issued: 03/31/2015
  • Est. Priority Date: 05/24/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving, by at least one processing device, a query instance according to a query template having a set of parameters;

    determining, by the at least one processing device, a plan space point for the query instance, the plan space point based upon the set of parameters; and

    predicting, by the at least one processing device, a predicted query plan for the plan space point based upon precision, the precision being a ratio of a number of correct predictions to a number of NULL-free predictions, the predicted query plan selected from a map of query plans according to a confidence threshold from a plan cache that includes at least one histogram, each histogram representative of a cached query plan in the plan cache combined with a previously-selected locality-sensitive hashing function, the histogram storing a frequency distribution of a mapping of sample plan points for the cached query plan by the locality-sensitive hashing function.

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