Publication
SIGMOD Record
Paper

Hypergraph based reorderings of outer join queries with complex predicates

Download paper

Abstract

Complex queries containing outer joins are, for the most part, executed by commercial DBMS products in an “as written'1 manner. Only a very few reorderings of the operations are considered and the benefits of considering comprehensive reordering schemes are not exploited. This is largely due to the fact there are no readily usable results for reordering such operations for relations with duplicates and/or outer join predicates that are other than “simple” Most previous approaches have ignored duplicates and complex predicates; the very few that have considered these aspects have suggested approaches that lead to a possibly exponential number of, and redundant intermediate joins. Since traditional query graph models are inadequate for modeling outer join queries with complex predicates, we present the needed hypergraph abstraction and algorithms for reordering such queries with joins and outer joins. As a result, the query optimizer can explore a significantly larger space of execution plans, and choose one with a low cost. Further, these algorithms are easily incorporated into well known and widely used enumeration methods such as dynamic programming. © 1995, ACM. All rights reserved.

Date

Publication

SIGMOD Record

Authors

Resources

Share