×

Method for detecting and optimizing queries with encoding/decoding tables

  • US 5,930,785 A
  • Filed: 10/16/1997
  • Issued: 07/27/1999
  • Est. Priority Date: 03/31/1995
  • Status: Expired due to Term
First Claim
Patent Images

1. In a relational database management system including a data processor, a stored database, and a plurality of database relations stored in the form of tables, wherein one or more of said relations are retrieved by the processor responsive to a query statement which specifies desired relations, the query statement including first, second, and third tables, and further including a join predicate between relations of the first and second tables and a join predicate between relations of the first and third tables, but not including a join predicate between the relations of the first and third tables, the system producing first plans for performing a plurality of join operations on the desired relations, an optimizing module for use in optimizing query commands, the optimizing module comprising:

  • means for determining that the first table referenced in the query statement is a hub table, and for determining that the second and third tables are spoke tables associated with the hub table because of the respective join predicates therebetween;

    means, operable responsive to identification of the hub table, for constructing a second plan for joining the hub table and the associated spoke tables;

    means for generating a third plan for joining the second and third tables of the desired relations referenced in said query statement; and

    means for enumerating the first, second, and third plans to determine the best plan for joining said tables referenced in said query statement.

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