On the optimal nesting order for computing N -relational joins
- 1 September 1984
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 9 (3) , 482-502
- https://doi.org/10.1145/1270.1498
Abstract
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.Keywords
This publication has 15 references indexed in Scilit:
- Power of Natural SemijoinsSIAM Journal on Computing, 1981
- Using Semi-Joins to Solve Relational QueriesJournal of the ACM, 1981
- On strictly optimal schedules for the cumulative cost-optimal scheduling problemComputing, 1980
- Sequencing with Series-Parallel Precedence ConstraintsMathematics of Operations Research, 1979
- Sequencing Jobs to Minimize Total Weighted Completion Time Subject to Precedence ConstraintsPublished by Elsevier ,1978
- The design and implementation of INGRESACM Transactions on Database Systems, 1976
- Decomposition—a strategy for query processingACM Transactions on Database Systems, 1976
- System RACM Transactions on Database Systems, 1976
- Analysis and performance of inverted data base structuresCommunications of the ACM, 1975
- A relational model of data for large shared data banksCommunications of the ACM, 1970