Publication | Open Access
On the optimal nesting order for computing <i>N</i> -relational joins
223
Citations
17
References
1984
Year
Relational QueriesDatabase TheoryEngineeringInformation RetrievalData ScienceData MiningVery Large DatabaseSorting AlgorithmNested LoopsComputational ComplexityNesting OrderComputer ScienceApproximate Query AnsweringDistributed Query ProcessingCombinatorial OptimizationData StructureOptimal Nesting OrderQuery Optimization
Using the nested loops method, this paper addresses the problem of minimizing the number of page fetches necessary to evaluate a given query to a relational database. We first propose a data structure whereby the number of page fetches required for query evaluation is substantially reduced and then derive a formula for the expected number of page fetches. An optimal solution to our problem is the nesting order of relations in the evaluation program, which minimizes the number of page fetches. Since the minimization of the formula is NP-hard, as shown in the Appendix, we propose a heuristic algorithm which produces a good suboptimal solution in polynomial time. For the special case where the input query is a “tree query,” we present an efficient algorithm for finding an optimal nesting order.
| Year | Citations | |
|---|---|---|
Page 1
Page 1