Join Order Selection - Good Enough Is Easy

  • Authors:
  • Florian Waas;Arjan Pellenkoft

  • Affiliations:
  • -;-

  • Venue:
  • BNCOD 17 Proceedings of the 17th British National Conferenc on Databases: Advances in Databases
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

Uniform sampling of join orders is known to be a competitive alternative to transformation-based optimization techniques. However, uniformity of the sampling process is difficult to establish and only for a restricted class ofjoin queries techniques are known. In this paper, we investigate non-uniform sampling devising a simple yet powerful algorithm that is generally applicable. The key element of the algorithm is a mapping ofrandomly generated sequences ofjoin predicates to query plans. We take advantage ofthe bottom-up constructing ofquery plans by simultaneously computing the costs and discarding partial plans as soon as they exceed the best costs found so far, which implements a highly effective cost-bound pruning component. Sampling does not produce the optimal plan but a near-optimal solution which is fully sufficient as the cost function grows more and more inaccurate with increasing query size. In return, our algorithm establishes a well-balanced trade-off between result quality and time invested in the optimization process.