Predicate Migration: Optimizing Queries with Expensive Predicates.
Joseph M. Hellerstein, Michael Stonebraker:
Predicate Migration: Optimizing Queries with Expensive Predicates.
SIGMOD Conference 1993: 267-276@inproceedings{DBLP:conf/sigmod/HellersteinS93,
author = {Joseph M. Hellerstein and
Michael Stonebraker},
editor = {Peter Buneman and
Sushil Jajodia},
title = {Predicate Migration: Optimizing Queries with Expensive Predicates},
booktitle = {Proceedings of the 1993 ACM SIGMOD International Conference on
Management of Data, Washington, D.C., May 26-28, 1993},
publisher = {ACM Press},
year = {1993},
pages = {267-276},
ee = {http://doi.acm.org/10.1145/170035.170078, db/conf/sigmod/HellersteinS93.html},
crossref = {DBLP:conf/sigmod/93},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
Abstract
The traditional focus of relational query optimization
schemes has been on the choice of join methods and join orders. Restrictions
have typically been handled in query optimizers by "predicate
pushdown" rules, which apply restrictions in some random order before
as many joins as possible. These rules work under the assumption
that restriction is essentially a zero-time operation. However, today's
extensible and object-oriented database systems allow users to define
time-consuming functions, which may be used in a query's restriction
and join predicates. Furthermore, SQL has long supported subquery
predicates, which may be arbitrarily time-consuming to check. Thus restrictions
should not be considered zero-time operations, and the model
of query optimization must be enhanced.
In this paper we develop a theory for moving expensive predicates
in a query plan so that the total cost of the plan - including the costs
of both joins and restrictions - is minimal. We present an algorithm
to implement the theory, as well as results of our implementation in
POSTGRES. Our experience with the newly enhanced POSTGRES
query optimizer demonstrates that correctly optimizing queries with
expensive predicates often produces plans that are orders of magnitude
faster than plans generated by a traditional query optimizer. The
additional complexity of considering expensive predicates during optimization
is found to be manageably small.
Copyright © 1993 by the ACM,
Inc., used by permission. Permission to make
digital or hard copies is granted provided that
copies are not made or distributed for profit or
direct commercial advantage, and that copies show
this notice on the first page or initial screen of
a display along with the full citation.
Online Version (ACM WWW Account required): Full Text in PDF Format
CDROM Version: Load the CDROM "Volume 1 Issue 1, SIGMOD '93-'97" and ...
DVD Version: Load ACM SIGMOD Anthology DVD 1" and ...
Printed Edition
Peter Buneman, Sushil Jajodia (Eds.):
Proceedings of the 1993 ACM SIGMOD International Conference on Management of Data, Washington, D.C., May 26-28, 1993.
ACM Press 1993 ,
SIGMOD Record 22(2),
June 1993
Contents
[Index Terms]
[Full Text in PDF Format, 1222 KB]
References
- [CGK89]
- Danette Chimenti, Ruben Gamboa, Ravi Krishnamurthy:
Towards on Open Architecture for LDL.
VLDB 1989: 195-203
- [D+90]
- O. Deux:
The Story of O2.
IEEE Trans. Knowl. Data Eng. 2(1): 91-108(1990)
- [Day87]
- Umeshwar Dayal:
Of Nests and Trees: A Unified Approach to Processing Queries That Contain Nested Subqueries, Aggregates, and Quantifiers.
VLDB 1987: 197-208
- [Han77]
- Michael Z. Hanani:
An Optimal Evaluation of Boolean Expressions in an Online Query System.
Commun. ACM 20(5): 344-347(1977)
- [HCL+90]
- Laura M. Haas, Walter Chang, Guy M. Lohman, John McPherson, Paul F. Wilms, George Lapis, Bruce G. Lindsay, Hamid Pirahesh, Michael J. Carey, Eugene J. Shekita:
Starburst Mid-Flight: As the Dust Clears.
IEEE Trans. Knowl. Data Eng. 2(1): 143-160(1990)
- [Hel92]
- ...
- [HOT88]
- Wen-Chi Hou, Gultekin Özsoyoglu, Baldeo K. Taneja:
Statistical Estimators for Relational Algebra Expressions.
PODS 1988: 276-287
- [IK84]
- Toshihide Ibaraki, Tiko Kameda:
On the Optimal Nesting Order for Computing N-Relational Joins.
ACM Trans. Database Syst. 9(3): 482-502(1984)
- [ISO91]
- ...
- [Jhi88]
- Anant Jhingran:
A Performance Study of Query Optimization Algorithms on a Database System Supporting Procedures.
VLDB 1988: 88-99
- [KBZ86]
- Ravi Krishnamurthy, Haran Boral, Carlo Zaniolo:
Optimization of Nonrecursive Queries.
VLDB 1986: 128-137
- [LDH+87]
- Guy M. Lohman, Dean Daniels, Laura M. Haas, Ruth Kistler, Patricia G. Selinger:
Optimization of Nested Queries in a Distributed Relational Database.
VLDB 1984: 403-415
- [LNSS93]
- Richard J. Lipton, Jeffrey F. Naughton, Donovan A. Schneider, S. Seshadri:
Efficient Sampling Strategies for Relational Database Operations.
Theor. Comput. Sci. 116(1&2): 195-226(1993)
- [LS88]
- Clifford A. Lynch, Michael Stonebraker:
Extended User-Defined Indexing with Application to Textual Databases.
VLDB 1988: 306-317
- [Mos90]
- ...
- [MS79]
- ...
- [MS86]
- David Maier, Jacob Stein:
Indexing in an Object-Oriented DBMS.
OODBS 1986: 171-182
- [MS87]
- ...
- [Ols92]
- ...
- [O'N89]
- ...
- [ONT92]
- ...
- [PHH92]
- Hamid Pirahesh, Joseph M. Hellerstein, Waqar Hasan:
Extensible/Rule Based Query Rewrite Optimization in Starburst.
SIGMOD Conference 1992: 39-48
- [Pro87]
- Peter M. Stocker, William Kent, Peter Hammersley (Eds.):
VLDB'87, Proceedings of 13th International Conference on Very Large Data Bases, September 1-4, 1987, Brighton, England.
Morgan Kaufmann 1987, ISBN 0-934613-46-X
Contents - [Pro88]
- ...
- [RS87]
- Lawrence A. Rowe, Michael Stonebraker:
The POSTGRES Data Model.
VLDB 1987: 83-96
- [SAC+79]
- Patricia G. Selinger, Morton M. Astrahan, Donald D. Chamberlin, Raymond A. Lorie, Thomas G. Price:
Access Path Selection in a Relational Database Management System.
SIGMOD Conference 1979: 23-34
- [SD92]
- ...
- [SFGM93]
- Michael Stonebraker, James Frew, Kenn Gardels, Jeff Meredith:
The Sequoia 2000 Benchmark.
SIGMOD Conference 1993: 2-11
- [SI92]
- ...
- [Smi56]
- ...
- [SR86]
- Michael Stonebraker, Lawrence A. Rowe:
The Design of Postgres.
SIGMOD Conference 1986: 340-355
- [Sto91]
- Michael Stonebraker:
Managing Persistent Objects in a Multi-Level Store.
SIGMOD Conference 1991: 2-11
- [TOB89]
- ...
- [Ull89]
- Jeffrey D. Ullman:
Principles of Database and Knowledge-Base Systems, Volume II.
Computer Science Press 1989, ISBN 0-7167-8162-X
Contents - [WLH90]
- W. Kevin Wilkinson, Peter Lyngbæk, Waqar Hasan:
The Iris Architecture and Implementation.
IEEE Trans. Knowl. Data Eng. 2(1): 63-75(1990)
Copyright © Sun Mar 14 23:25:41 2010
by Michael Ley (ley@uni-trier.de)