×

SQL execution plan verification

  • US 10,229,158 B2
  • Filed: 04/11/2014
  • Issued: 03/12/2019
  • Est. Priority Date: 10/17/2007
  • Status: Active Grant
First Claim
Patent Images

1. A system comprising:

  • a persistent storage device;

    one or more processors, operatively coupled to the persistent storage device;

    memory, operatively coupled to the one or more processors, storing instructions executable by the one or more processors;

    wherein the instructions include instructions which, when executed by the one or more processors, cause;

    generating query plans for executing database commands;

    wherein the query plans include a first query plan for performing operations specified by a particular database command and a second query plan for performing the operations specified by the particular database command;

    wherein the first query plan is a plan for performing the operations specified by the particular database command in a manner that is different than how the second query plan performs the operations specified by the particular database command;

    storing, at the persistent storage device, verification data that identifies a first set of the query plans as having been designated as acceptable for executing database commands, and a second set of the query plans as awaiting verification;

    wherein the verification data indicates that the first query plan is in the first set of query plans, and therefore designated as acceptable for executing the particular database command;

    wherein the verification data indicates that the second query plan is in the second set of query plans, and therefore awaiting verification as to whether the second query plan is acceptable for executing the particular database command;

    executing first query plans in the first set of query plans and second query plans in the second set of query plans;

    wherein executing the first query plans includes executing the first query plan;

    wherein executing the second query plans includes executing the second query plan;

    performing comparisons of first performance statistics collected during execution of the first query plans in the first set of query plans to second performance statistics collected during execution of the second query plans in the second set of query plans;

    wherein performing comparisons includes comparing performance statistics collected during execution of the first query plan with performance statistics collected during execution of the second query plan; and

    based on the comparisons, updating the verification data to cause;

    the first set to include the second query plan, andthe second set to cease to include the second query plan.

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