×

Optimization of SQL queries using hash star join operations

  • US 5,864,842 A
  • Filed: 10/23/1995
  • Issued: 01/26/1999
  • Est. Priority Date: 10/23/1995
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of optimizing a query in a computer having a memory, the query being performed by the computer to retrieve data from a relational database stored in one or more electronic storage devices coupled to the computer, the method comprising the steps of:

  • (a) examining the query in the memory of the computer to determine whether the query includes a star join operation on a base table and a plurality of dimension tables; and

    (b) performing, in the memory of the computer, a hash star join operation when the query includes the star join operation on the base table and the plurality of dimension tables, further comprising the steps of;

    (1) hash partitioning the base table into a plurality of distinct and separate sub-portions thereof;

    (2) selecting and projecting rows from all of the dimension tables to separate temporary tables;

    (3) splitting the query into a plurality of sub-queries, wherein each of the sub-queries comprises a hash star join operation on the separate temporary tables and one or more of the distinct sub-portions of the base table;

    (4) performing each of the sub-queries independently of one another to create intermediate result tables; and

    (5) merging the intermediate result tables from each of the performed sub-queries to create an output table.

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