×

Initial ordering of tables for database queries

  • US 6,377,943 B1
  • Filed: 01/20/1999
  • Issued: 04/23/2002
  • Est. Priority Date: 01/20/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of determining a desired ordering of join operations on database objects specified by a query to process said query, comprising the computer implemented steps of:

  • generating a first initial join ordering of the database objects;

    enumerating a plurality of first join orderings based on the first initial join ordering;

    searching the plurality of first join orderings for the desired ordering based on cost estimation;

    generating a second initial join ordering of the database objects;

    enumerating a plurality of second join orderings based on the second initial join ordering;

    searching the plurality of second join orderings for the desired ordering based on cost estimation;

    wherein said searching the plurality of first join orderings includes;

    comparing a best cost of a currently least cost join order and an estimated cost expended in said searching the plurality of first join orderings; and

    if the best cost of the currently least cost join order is greater than the estimated cost expended in said searching plurality of first join orderings, then terminating said searching the plurality of the first join orderings.

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