Least expected cost query optimization
Francis C. Chu, Joseph Yehuda Halpern, Johannes E. Gehrke · ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS) · 2002
A standard assumption in the database query optimization literature is that it suffices to optimize for the "typical" case---that is, the case in which various parameters (e.g., the amount of available memory, the selectivities of predicates, etc.) take on their "typical" values. It was claimed in [CHS99] that we could do better by choosing plans based on their expected cost. Here we investigate this issue more thoroughly. We show that in many circumstances of interest, a "typical" value of the parameter often does give acceptable answers, provided that it is chosen carefully and we are interested only in minimizing expected running time. However, by minimizing the expected running time, we are effectively assuming that if plan p1 runs three times as long as plan p2, then p1 is exactly three times as bad as p2. An assumption like this is not always appropriate. We show that focusing on least expected cost can lead to significant improvement for a number of cost functions of interest.
Cited by 55 works. doi:10.1145/543613.543651
Authors
References
- Access path selection in a relational database management system
- Principles of database and knowledge-base systems
- Online aggregation
- Transaction Processing Performance Council
- Principles of Database and Knowledge-Base Systems Volume II: The New Technologies
- Optimizing Queries Across Diverse Data Sources
- Parametric query optimization
- LEO - DB2's LEarning Optimizer
- Memory management during run generation in external sorting
- Hash Joins and Hash Teams in Microsoft SQL Server