×

Star/join query optimization

  • US 5,960,428 A
  • Filed: 08/28/1997
  • Issued: 09/28/1999
  • Est. Priority Date: 08/28/1997
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for planning a database query, comprising:

  • receiving a star/join query joining a fact table with multiple dimension tables, said fact table including a plurality of rows each row identified by a row identification code (RID);

    forming a first query plan for access of each dimension table to identify resultant rows of each dimension table;

    forming a second query plan for access of the fact table, comprising the steps of;

    for the resultant rows of each dimension table, planning a fact table index scan over join columns of that dimension table to produce a set of resultant RIDs, said fact table having indices for join columns with each of the dimension tables;

    applying staged comparative RID filtering to each dimension table'"'"'s set of resultant RIDs to produce a set of filtered RIDs; and

    planning a fetch of all fact table rows corresponding to the set of filtered RIDs to produce a distilled fact table; and

    forming a final query plan comprising planning execution of the query using the distilled fact table.

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