×

Determining validity ranges of query plans based on suboptimality

  • US 20050267866A1
  • Filed: 05/28/2004
  • Published: 12/01/2005
  • Est. Priority Date: 05/28/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for selecting an optimal query plan for the execution of a database query, said method comprising:

  • a. comparing a first query plan chosen by a query optimizer to at least one structurally equivalent query plan, said comparison made with respect to cost as a function of input row, outer cardinality;

    b. developing a robustness measure for each of said first query plan and at least one structurally equivalent query plan, said robustness measured by the probability that each of said first query plan and at least one structurally equivalent query plans is least-cost with respect to cost determined by a database query execution cost model;

    c. selectively choosing either of;

    said first query plan or one of said at least one structurally equivalent query plans, based on a comparison of said developed robustness measures and, wherein said developed robustness measure for said chosen query plan is greater in value than each of said developed robustness measures for each of said first query plan and at least one structurally equivalent query plans not chosen in said choosing step.

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