×

Optimizer dynamic sampling

  • US 20040225639A1
  • Filed: 05/09/2003
  • Published: 11/11/2004
  • Est. Priority Date: 05/09/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method used for optimizing queries, the method comprising the steps of:

  • receiving a first query that requires access to a first table;

    generating a first execution plan for executing said first query;

    based on a set of one or more factors, determining whether to execute another query to access a subset of rows as a sample from said first table and to generate results used to evaluate efficiency of execution plans for executing said first query;

    wherein said one or more factors include at least one factor that reflects the efficacy of executing said other query to evaluate the efficiency of execution plans for executing said first query;

    if, based on said one or more factors, it is determined the other query should be executed, then issuing said other query to generate first results; and

    determining a second execution plan for executing said first query based on said first results.

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