Optimization techniques for queries with expensive methods
Joseph M. Hellerstein · ACM Transactions on Database Systems · 1998
Object-relational database management systems allow knowledgeable users to define new data types as well as new methods (operators) for the types. This flexibility produces an attendant complexity, which must be handled in new ways for an object-relational database management system to be efficient. In this article we study techniques for optimizing queries that contain time-consuming methods. The focus of traditional query optimizers has been on the choice of join methods and orders; selections have been handled by “pushdown” rules. These rules apply selections in an arbitrary order before as many joins as possible, using th e assumption that selection takes no time. However, users of object-relational systems can embed complex methods in selections. Thus selections may take significant amounts of time, and the query optimization model must be enhanced. In this article we carefully define a query cost framework that incorporates both selectivity and cost estimates for selections. We develop an algorithm called Predicate Migration, and prove that it produces optimal plans for queries with expensive methods. We then describe our implementation of Predicate Migration in the commercial object-relational database management system Illustra, and discuss practical issues that affect our earlier assumptions. We compare Predicate Migration to a variety of simplier optimization techniques, and demonstrate that Predicate Migration is the best general solution to date. The alternative techniques we present may be useful for constrained workloads.
Cited by 130 works. doi:10.1145/292481.277627 Open-access PDF
Authors
References
- Access path selection in a relational database management system
- Various optimizers for single‐stage production
- Decomposition—a strategy for query processing
- Benchmarking Database Systems A Systematic Approach
- The SEQUOIA 2000 storage benchmark
- Benchmark Handbook: For Database and Transaction Processing Systems
- Improved histograms for selectivity estimation of range predicates
- Sampling-Based Estimation of the Number of Distinct Values of an Attribute
- A Data Base Search Problem
- Beyond uniformity and independence