×

System and methodology for cost-based subquery optimization using a left-deep tree join enumeration algorithm

  • US 20040220923A1
  • Filed: 04/28/2004
  • Published: 11/04/2004
  • Est. Priority Date: 06/29/2002
  • Status: Active Grant
First Claim
Patent Images

1. In a database system, a method for optimizing a database query, the method comprising:

  • receiving a database query including at least one subquery;

    building a query optimization graph for each query block of the database query, the query optimization graph including plan nodes representing subqueries of each query block;

    generating a set of access methods and join methods for each plan node, including generating at least one access method for a subquery quantifier based on subquery type and semantic properties of the database query;

    determining an optimal access plan for each query block based upon selecting access methods, join methods, and join order for plan nodes of said query optimization graph having favorable execution costs; and

    constructing a detailed access plan for execution of the database query based upon the optimal access plan determined for each query block.

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