1990 · 320 citations · 11 references
ComputingComputer ScienceAlgorithmsDatabasesOptimizationCombinatorial OptimizationMetaheuristic OptimizationQuery OptimizationQuery ProcessingRandomized AlgorithmsSearching AlgorithmsCost-based Query OptimizationIterative ImprovementJoin AlgorithmsQuery Performance OptimizationRelational Database SystemsSimulated AnnealingSimulated Annealing OptimizationSolution Space Exploration
Query optimization for relational database systems is a combinatorial optimization problem, which makes exhaustive search unacceptable as the query size grows. Randomized algorithms, such as Simulated Annealing (SA) and Iterative Improvement (II), are viable alternatives to exhaustive search. We have adapted these algorithms to the optimization of project-select-join queries. We have tested them on large queries of various types with different databases, concluding that in most cases SA identifies a lower cost access plan than II. To explain this result, we have studied the shape of the cost function over the solution space associated with such queries and we have conjectured that it resembles a 'cup' with relatively small variations at the bottom. This has inspired a new Two Phase Optimization algorithm, which is a combination of Simulated Annealing and Iterative Improvement. Experimental results show that Two Phase Optimization outperforms the original algorithms in terms of both output quality and running time.
11
Access path selection in a relational database management system
Patricia G. Selinger, M. M. Astrahan, Donald D. Chamberlin et al. · 1979 · 2.2K citations
Timos Sellis · ACM Transactions on Database Systems · 1988 · 809 citations · Full text
Optimization of Nonrecursive Queries
Ravi Krishnamurthy, Haran Boral, Carlo Zaniolo · 1986 · 210 citations
Optimization of large join queries
Arun Swami, Anoop Gupta · ACM SIGMOD Record · 1988 · 189 citations
Query optimization by simulated annealing
Yannis Ioannidis, Eugene Wong · 1987 · 184 citations · Full text