ACM SIGMOD Record · 1986 · 126 citations · 24 references
ComputingComputer ScienceComputer SystemsDatabasesDistributed SystemsExperimental PerformanceDatabase ManagementPerformance ModelingPerformance OptimizationQuery OptimizationQuery ProcessingStructured Query LanguageCost ModelsDatabase BenchmarkingDatabase Bottleneck AnalysisExperimental Data CollectionIndexesJoinOptimization AlgorithmsQuery Performance Optimization
Few database query optimizer models have been validated against actual performance. The study validates the R* optimizer and evaluates its performance in a distributed relational database system. The authors performed extensive tests on diverse dynamic databases and queries, and propose enhancements to statistics, buffer management, and indexing to improve optimizer accuracy. The validation confirmed that the I/O cost model is largely accurate, CPU cost is a major contributor requiring finer modeling, buffer utilization models are needed, and the optimizer correctly avoids nested-loop joins without an inner index but overestimates their cost when the inner is indexed, highlighting sensitivity to cardinality and buffer page estimates.
Few database query optimizer models have been validated against actual performance. This paper presents the methodology and results of a thorough validation of the optimizer and evaluation of the performance of the experimental distributed relational database management system R * , which inherited and extended to a distributed environment the optimization algorithms of System R. Optimizer estimated costs and actual R * resources consumed were written to database tables using new SQL commands, permitting automated control from SQL application programs of test data collection and reduction. A number of tests were run over a wide variety of dynamically-created test databases, SQL queries, and system parameters. The results for single-table access, sorting, and local 2-table joins are reported here. The tests confirmed the accuracy of the majority of the I/O cost model, the significant contribution of CPU cost to total cost, and the need to model CPU cost in more detail than was done in System R. The R * optimizer now retains cost components separately and estimates the number of CPU instructions, including those for applying different kinds of predicates. The sensitivity of I/O cost to buffer space motivated the development of more detailed models of buffer utilization unclustered index scans and nested-loop joins often benefit from pages remaining in the buffers, whereas concurrent scans of the data pages and the index pages for multiple tables during joins compete for buffer share. Without an index on the join column of the inner table, the optimizer correctly avoids the nested-loop join, confirming the need for merge-scan joins. When the join column of the inner is indexed, the optimizer overestimates the cost of the nested-loop join, whose actual performance is very sensitive to three parameters that are extremely difficult to estimate (1) the join (result) cardinality, (2) the outer table's cardinality, and (3) the number of buffer pages available to store the inner table. Suggestions are given for improved database statistics, prefetch and page replacement strategies for the buffer manager, and the use of temporary indexes and Bloom filters (hashed semijoins) to reduce access of unneeded data.
24
Space/time trade-offs in hash coding with allowable errors
Burton H. Bloom · Communications of the ACM · 1970 · 7.5K citations · Full text
Access path selection in a relational database management system
Patricia G. Selinger, M. M. Astrahan, Donald D. Chamberlin et al. · 1979 · 2.2K citations
Implementation techniques for main memory database systems
David J. DeWitt, Randy H. Katz, Frank Olken et al. · 1984 · 818 citations · Full text