|
ABSTRACT
Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers may not be optimal for many of their actual run-time invocations. Instead, we propose a novel optimization model that assigns the bulk of the optimization effort to compile-time and delays carefully selected optimization decisions until run-time. Our previous work defined the run-time primitives, “dynamic plans” using “choose-plan” operators, for executing such delayed decisions, but did not solve the problem of constructing dynamic plans at compile-time. The present paper introduces techniques that solve this problem. Experience with a working prototype optimizer demonstrates (i) that the additional optimization and start-up overhead of dynamic plans compared to static plans is dominated by their advantage at run-time, (ii) that dynamic plans are as robust as the “brute-force” remedy of run-time optimization, i.e., dynamic plans maintain their optimality even if parameters change between compile-time and run-time, and (iii) that the start-up overhead of dynamic plans is significantly less than the time required for complete optimization at run-time. In other words, our proposed techniques are superior to both techniques considered to-date, namely compile-time optimization into a single static plan as well as run-time optimization. Finally, we believe that the concepts and technology described can be transferred to commercial query optimizers in order to improve the performance of embedded queries with host variables in the query predicate and to adapt to run-time system loads unpredictable at compile time.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
Ant93
|
|
 |
BMG93
|
José A. Blakeley , William J. McKenna , Goetz Graefe, Experiences building the open OODB query optimizer, Proceedings of the 1993 ACM SIGMOD international conference on Management of data, p.287-296, May 25-28, 1993, Washington, D.C., United States
|
 |
BPR90
|
|
 |
CAK81
|
D. D. Chamberlin , M. M. Astrahan , W. F. King , R. A. Lorie , J. W. Mehl , T. G. Price , M. Schkolnick , P. Griffiths Selinger , D. R. Slutz , B. W. Wade , R. A. Yost, Support for repetitive transactions and ad hoc queries in System R, ACM Transactions on Database Systems (TODS), v.6 n.1, p.70-94, March 1981
[doi> 10.1145/319540.319550]
|
 |
Chr84
|
|
| |
CAB93
|
R.L. Cole, M. J. Anderson, and R. J. Bestgen, "Query Processing in the IBM Application System/400", IEEE Data Eng. Bull. 16, 4 (December 1993), 19.
|
| |
CLR89
|
|
 |
DMP93
|
Marcia A. Derr , Shinichi Morishita , Geoffrey Phipps, Design and implementation of the glue-nail database system, Proceedings of the 1993 ACM SIGMOD international conference on Management of data, p.147-156, May 25-28, 1993, Washington, D.C., United States
|
 |
GHK92
|
Sumit Ganguly , Waqar Hasan , Ravi Krishnamurthy, Query optimization for parallel execution, Proceedings of the 1992 ACM SIGMOD international conference on Management of data, p.9-18, June 02-05, 1992, San Diego, California, United States
|
 |
GrW89
|
|
 |
Gra93
|
|
| |
GrM93
|
|
| |
HaP88
|
W. Hasan and H. Pirahesh, "Query Rewrite Optimization in Starburst", Comp. Sci. Res. Rep., San Jose, CA, August 1988.
|
| |
HoS93
|
|
 |
IoC91
|
|
| |
INS92
|
Y.E. Ioannidis, R. T. Ng, K. Shim, and T. K. Sellis, "Parametric Query Processing", Proc. lnt'l. Conf. on Very Large Data Bases, Vancouver, BC, Canada, August 1992, 103.
|
 |
KGM91
|
Tom Keller , Goetz Graefe , David Maier, Efficient assembly for complex objects, Proceedings of the 1991 ACM SIGMOD international conference on Management of data, p.148-157, May 29-31, 1991, Denver, Colorado, United States
|
| |
Loh89
|
G.M. Lohman, "Is Query Optimization a 'Solved' Problem?", in Proc. Workshop on Database Query Optimization, G. Graefe (editor), Oregon Graduate Center Comp. Sci. Tech. Rep. 89-005, Beaverton, OR, May 1989, 13.
|
 |
MaL89
|
|
| |
MHW90
|
C. Mohan , Don Haderle , Yun Wang , Josephine Cheng, Single table access using multiple indexes: optimization, execution, and concurrency control techniques, Proceedings of the international conference on extending database technology on Advances in database technology, p.29-43, March 1990, Venice, Italy
|
| |
OnL90
|
|
 |
OHM92
|
Jack Orenstein , Sam Haradhvala , Benson Margulies , Don Sakahara, Query processing in the ObjectStore database system, Proceedings of the 1992 ACM SIGMOD international conference on Management of data, p.403-412, June 02-05, 1992, San Diego, California, United States
|
| |
SAC79
|
P. Griffiths Selinger , M. M. Astrahan , D. D. Chamberlin , R. A. Lorie , T. G. Price, Access path selection in a relational database management system, Readings in database systems, Morgan Kaufmann Publishers Inc., San Francisco, CA, 1988
|
| |
SBM89
|
K. Seppi, J. Barnes, and C. Morris, "A Bayesian Approach to Query Optimization in Large Scale Data Bases", The Univ. of Texas at Austin ORP 89-19, Austin, TX, 1989.
|
 |
TsN92
|
|
| |
WoG93
|
|
CITED BY 39
|
|
Luc Bouganim , Olga Kapitskaia , Patrick Valduriez, Memory-adaptive scheduling for large query execution, Proceedings of the seventh international conference on Information and knowledge management, p.105-115, November 02-07, 1998, Bethesda, Maryland, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Francis Chu , Joseph Y. Halpern , Praveen Seshadri, Least expected cost query optimization: an exercise in utility, Proceedings of the eighteenth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, p.138-147, May 31-June 03, 1999, Philadelphia, Pennsylvania, United States
|
|
|
|
|
|
|
|
|
|
|
|
Volker Markl , Vijayshankar Raman , David Simmen , Guy Lohman , Hamid Pirahesh , Miso Cilimdzic, Robust query processing through progressive optimization, Proceedings of the 2004 ACM SIGMOD international conference on Management of data, June 13-18, 2004, Paris, France
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Antara Ghosh , Jignashu Parikh , Vibhuti S. Sengar , Jayant R. Haritsa, Plan selection based on query clustering, Proceedings of the 28th international conference on Very Large Data Bases, p.179-190, August 20-23, 2002, Hong Kong, China
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Riham Abdel Kader , Peter Boncz , Stefan Manegold , Maurice van Keulen, ROX: run-time optimization of XQueries, Proceedings of the 35th SIGMOD international conference on Management of data, June 29-July 02, 2009, Providence, Rhode Island, USA
|
|
|
Ahmad Ghazal , Dawit Seid , Bhashyam Ramesh , Alain Crolotte , Manjula Koppuravuri , Vinod G, Dynamic plan generation for parameterized queries, Proceedings of the 35th SIGMOD international conference on Management of data, June 29-July 02, 2009, Providence, Rhode Island, USA
|
|
|
|
|