Proceedings of the VLDB Endowment · 2013 · 17 citations · 16 references
ComputingComputer ScienceAlgorithmsData StructuresDatabasesBranch And BoundQuery OptimizationQuery ProcessingRelational AlgebraCompile-time OptimizationCost-based Query OptimizationJoin AlgorithmsJoin OperationsJoin OrderingOptimal ExecutionOuter JoinQuery Plan Enumeration
Finding the optimal execution order of join operations is a crucial task of today's cost-based query optimizers. There are two approaches to identify the best plan: bottom-up and top-down join enumeration. But only the top-down approach allows for branch-and-bound pruning, which can improve compile time by several orders of magnitude while still preserving optimality. For both optimization strategies, efficient enumeration algorithms have been published. However, there are two severe limitations for the top-down approach: The published algorithms can handle only (1) simple (binary) join predicates and (2) inner joins. Since real queries may contain complex join predicates involving more than two relations, and outer joins as well as other non-inner joins, efficient top-down join enumeration cannot be used in practice yet. We develop a novel top-down join enumeration algorithm that overcomes these two limitations. Furthermore, we show that our new algorithm is competitive when compared to the state of the art in bottom-up processing even without playing out its advantage by making use of its branch-and-bound pruning capabilities.
16
The Volcano optimizer generator: extensibility and efficient search
Goetz Graefe, William J. McKenna · 2002 · 384 citations
Measuring the complexity of join enumeration in query optimization
Kiyoshi Ono, Guy M. Lohman · 1990 · 159 citations
Dynamic programming strikes back
Guido Moerkotte, Thomas Neumann · 2008 · 97 citations
Rapid bushy join-order optimization with Cartesian products
Bennet Vance, David Maier · 1996 · 91 citations