Patents
US 6,665,663 B2#2628972 Most CitedExpiredUnited States (USPTO)Utility

Outerjoin and antijoin reordering using extended eligibility lists

27Forward Citations (#2628972 Global)
1.2/yrCitation Velocity (#5250705 Global)
7.10Citation PageRank (#1872325 Global)
7Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

An optimization technique that reorders outerjoins and antijoins with inner joins in a bottom-up optimizer of a relational database management system (RDBMS). Each join predicate is associated with a normal eligibility list (NEL) that includes tables that are referenced in the join predicate and an extended eligibility list (EEL) that includes additional tables that are referenced in conflicting join predicates. An EEL includes all the tables needed by a predicate to preserve the semantics of the original query. During join enumeration, the optimizer determines whether a join predicate's EEL is a subset of all the tables in two subplans to be merged, i.e., whose EEL is covered. If so, the two subplans are combined using the join predicate. Otherwise, the two subplans cannot be joined. Two approaches are used to reordering: without compensation and with compensation. The “without compensation” approach only allows join reorderings that are valid under associative rules. Thus, the optimizer will not combine subplans using a join predicate whose EEL is not covered. The “with compensation” approach allows two subplans to be combined using the join predicate, when a join predicate&#

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 27.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of performing a query in a computer system to retrieve data from a database stored on the computer system, the method comprising: (a) generating a plurality of query execution plans (QEPs) for the query, wherein each of the QEPs includes an ordering of inner joins, outerjoins, and antijoins therein; (b) determining whether the ordering of inner joins, outerjoins, and antijoins for each QEP produces a semantically correct answer when executed, by extending a normal eligibility list (NEL) for each join predicate in the inner joins, outerjoins, and antijoins, wherein the NEL contains all

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • A. Rosenthal et al. (1990) "Query graphs implementing trees, and freely-reorderable outerjoins," In Proceedings of the ACM SIGMOD, pp. 291-299.
  • C. Galindo-Legaria et al. (1992) "Algebraic optimization of outerjoin queries," PhD thesis, Dept. of Applied Science, Harvard University.
  • C. Galindo-Legaria et al. (1992) "How to extend a conventional optimizer to handle one- and two-sided outerjoin," In Proc. IEEE Int'l Conf. on Data Eng., pp. 402-409.
  • C. Galindo-Legaria et al. (1997) "Outerjoin simplification and reordering for query optimization," Transactions on Databse Systems, 22(1):43-73.
  • E.F. Codd (1979) "Extending the relational database model to capture more meaning," Transactions on Database Systems, 4(4):397-434.