×

Physical planning of database queries using partial solutions

  • US 10,628,417 B2
  • Filed: 10/24/2014
  • Issued: 04/21/2020
  • Est. Priority Date: 12/01/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of physical planning of database queries, comprising:

  • receiving a database query including a plurality of portions;

    receiving a request for generating an execution plan for the database query including the plurality of portions;

    generating the execution plan for execution of the database query, comprising;

    identifying the plurality of portions of the database query, wherein each portion of the database query is associated with one or more partial execution plans, each partial execution plan represents an execution plan for the portion of the database query and comprises one or more physical operators, and wherein each physical operator implements a database operation for producing an output data set from one or more input data sets;

    determining a threshold number of partial execution plans for the database query based on a measure of complexity of the database query, the measure of complexity of the query representing an estimate of a number of feasible joins of the database query, the estimate determined based on at least one of;

    (1) a structure of the database query or (2) a join enumeration performed using an ordered traversal of a graph representation of the database query, the threshold number limiting a number of candidate partial execution plans evaluated to determine a partial execution plan for each portion of the database query, the threshold number determined to be a value inversely proportionate to the measure of complexity of the database query;

    determining a plurality of partial execution plans for execution of the database query by evaluating the number of candidate partial execution plans for each portion of the database query, each partial execution plan corresponding to a portion of the database query; and

    combining the plurality of partial execution plans to generate the execution plan;

    andexecuting the database query by executing the execution plan.

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