2011 · 26 citations · 8 references
ComputingComputer ScienceAlgorithmsData StructuresDatabasesAlgorithm AnalysisData Structure AlgorithmsGraph AlgorithmsQuery OptimizationQuery ProcessingRelational AlgebraCost-based Query OptimizationEnumeration Algorithms For GraphsJoinJoin AlgorithmsJoin OperationsJoin OrderingOptimal ExecutionTop-down Implementation
Finding an optimal execution order of join operations is a crucial task in every cost-based query optimizer. Since there are many possible join trees for a given query, the overhead of the join (tree) enumeration algorithm per valid join tree should be minimal. In the case of a clique-shaped query graph, the best known top-down algorithm has a complexity of Θ(n <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> ) per join tree, where n is the number of relations. In this paper, we present an algorithm that has an according O(1) complexity in this case. We show experimentally that this more theoretical result has indeed a high impact on the performance in other non-clique settings. This is especially true for cyclic query graphs. Further, we evaluate the performance of our new algorithm and compare it with the best top-down and bottom-up algorithms described in the literature.
8
Measuring the complexity of join enumeration in query optimization
Kiyoshi Ono, Guy M. Lohman · 1990 · 159 citations
Yannis Ioannidis, Younkyung Cha Kang · 1991 · 126 citations · Full text
Rapid bushy join-order optimization with Cartesian products
Bennet Vance, David Maier · 1996 · 91 citations
S eek ing the truth about ad hoc join costs
Laura M. Haas, Michael J. Carey, Miron Livny et al. · The VLDB Journal · 1997 · 88 citations · Full text