Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/191839.191872acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article
Free access

Optimization of dynamic query evaluation plans

Published: 24 May 1994 Publication History

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

[1]
G. Antoshenkov, "Dynamic Query Optimization in Rdb/VMS", Proc. IEEE lnt'l. Conf. on Data Eng., Vienna, Austria, April 1993, 538.
[2]
J.A. Blakeley, W. J. McKenna, and G. Graefe, "Experiences Building the Open OODB Query Optimizer", Proc. A CM SIGMOD Conf., Washington, DC, May 1993, 287.
[3]
P. Bodorik, J. Pyra, and J. S. Riordon, "Correcting Execution of Distributed Queries", Proc. Int'l. Syrup. on Databases in Parallel and Distributed Systems, Dublin, Ireland, July 1990, 192.
[4]
D.D. Chamberlin, M. M. Astrahan, W. E King, R. A. Lorie, J. W. Mehl, T. G. Price, M. Schkolnik, P. G. Selinger, D. R. Slutz, B. W. Wade, and R. A. Yost, "Support for Repetitive Transactions and Ad Hoc Queries in System R", A CM Trans. on Database Sys. 6, 1 (March 1981), 70.
[5]
S. Christodoulakis, "Implications of Certain Assumptions in Database Performance Evaluation", ACM Trans. on Database Sys. 9, 2 (June 1984), 163.
[6]
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.
[7]
T. Cormen, C. Leiserson, and R. Rivest, Introduction to Algorithms, McGraw-Hill, New York, NY, 1989.
[8]
M.A. Derr, S. Morishita, and G. Phipps, "Design and implementation of the Glue-Nail Database System", Proc. ACM SIGMOD Conf., Washington, DC, May 1993, 147.
[9]
S. Ganguly, W. Hasan, and R. Krishnamurthy, "Query Optimization for Parallel Execution", Proc. ACM SIGMOD Conf., San Diego, CA, June 1992, 9.
[10]
G. Graefe and K. Ward, "Dynamic Query Evaluation Plans", Proc. A CM SIGMOD Conf., Portland, OR, May-June 1989, 358.
[11]
G. Graefe, "Query Evaluation Techniques for Large Databases", ACM Computing Surveys 25, 2 (June 1993), 73-170.
[12]
G. Graefe and W. J. McKenna, "The Volcano Optimizer Generator: Extensibility and Efficient Search", Proc. IEEE Int'l. Conf. on Data Eng., Vienna, Austria, April 1993, 209.
[13]
W. Hasan and H. Pirahesh, "Query Rewrite Optimization in Starburst", Comp. Sci. Res. Rep., San Jose, CA, August 1988.
[14]
W. Hong and M. Stonebraker, "Optimization of Parallel Query Execution Plans in XPRS", Distr. and Parallel Databases 1, 1 (January t 993), 9.
[15]
Y.E. Ioannidis and S. C1gistodoulakis, "On the Propagation of Errors in the Size of Join Results", Proc. ACM SIGMOD Conf., Denver, CO, May 1991, 268.
[16]
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.
[17]
T. Keller, G. Graefe, and D. Maier, "Efficient Assembly of Complex Objects", Proc. ACM SIGMOD Conf., Denver, CO, May 1991,148.
[18]
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.
[19]
L. E Mackert and G. M. Lohman, "Index Scans Using a Finite LRU Buffer: A Validated I/O Model", ACM Trans. on Database Sys. 14, 3 (September 1989), 4O 1.
[20]
C. Mohan, D. Haderle, Y. Wang, and J. Cheng, "Single Table Access Using Multiple Indexes: Optimization, Execution and Concurrency Control Techniques", Lecture Notes in Comp. Sci. 416 (March 1990), 29, Springer Verlag.
[21]
K. Ono and G. M. Lohman, "Measuring the Complexity of Join Enumeration in Query Optimization", Proe. lnt'l. Conf. on Very Large Data Bases, Brisbane, Australia, August 1990, 314.
[22]
J. Orenstein, S. Haradhvala, B. Margulies, and D. Sakahara, "Query Processing in the ObjectStore Database System", Proc. ACM SIGMOD Conf., San Diego, CA, June 1992, 403.
[23]
R G. Selinger, M. M. Astrahan, D. D. Chamberlin, R. A. Lorie, and T. G. Price, "Access Path Selection in a Relational Database Management System", Proc. ACM SIGMOD Conf., Boston, MA, May-June 1979, 23. Reprinted in M. Stonebraker, Readings in Database Sys., Morgan-Kaufman, San Mateo, CA, 1988.
[24]
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.
[25]
M.M. Tsangaris and J. E Naughton, "On the Performance of Object Clustering Techniques", Proc. ACM SIGMOD Conf., San Diego, CA, June 1992, 144.
[26]
R.H. Wolniewicz and G. Graefe, "Algebraic Optimization of Computations over Scientific Databases", Proc. lntl' Conf. on Very Large Data Bases, Dublin, Ireland, August 1993, 13.

Cited By

View all
  • (2023)Krypton: Real-Time Serving and Analytical SQL Engine at ByteDanceProceedings of the VLDB Endowment10.14778/3611540.361154516:12(3528-3542)Online publication date: 1-Aug-2023
  • (2023)Simple Adaptive Query Processing vs. Learned Query Optimizers: Observations and AnalysisProceedings of the VLDB Endowment10.14778/3611479.361150116:11(2962-2975)Online publication date: 24-Aug-2023
  • (2023)Optimisation of Link Traversal Query Processing over Distributed Linked Data through Adaptive TechniquesThe Semantic Web: ESWC 2023 Satellite Events10.1007/978-3-031-43458-7_45(266-276)Online publication date: 21-Oct-2023
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
SIGMOD '94: Proceedings of the 1994 ACM SIGMOD international conference on Management of data
May 1994
525 pages
ISBN:0897916395
DOI:10.1145/191839
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 24 May 1994

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

SIGMOD/PODS94

Acceptance Rates

Overall Acceptance Rate 785 of 4,003 submissions, 20%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)219
  • Downloads (Last 6 weeks)23
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Krypton: Real-Time Serving and Analytical SQL Engine at ByteDanceProceedings of the VLDB Endowment10.14778/3611540.361154516:12(3528-3542)Online publication date: 1-Aug-2023
  • (2023)Simple Adaptive Query Processing vs. Learned Query Optimizers: Observations and AnalysisProceedings of the VLDB Endowment10.14778/3611479.361150116:11(2962-2975)Online publication date: 24-Aug-2023
  • (2023)Optimisation of Link Traversal Query Processing over Distributed Linked Data through Adaptive TechniquesThe Semantic Web: ESWC 2023 Satellite Events10.1007/978-3-031-43458-7_45(266-276)Online publication date: 21-Oct-2023
  • (2022)Automatic Array Transformation to Columnar Storage at Run TimeProceedings of the 19th International Conference on Managed Programming Languages and Runtimes10.1145/3546918.3546919(16-28)Online publication date: 14-Sep-2022
  • (2022)RL_QOptimizer: A Reinforcement Learning Based Query OptimizerIEEE Access10.1109/ACCESS.2022.318710210(70502-70515)Online publication date: 2022
  • (2021)Run-time data analysis in dynamic runtimesCompanion Proceedings of the 2021 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity10.1145/3484271.3484973(6-8)Online publication date: 17-Oct-2021
  • (2019)Query optimization mechanisms in the cloud environments: A systematic studyInternational Journal of Communication Systems10.1002/dac.394032:8Online publication date: 12-Mar-2019
  • (2019)Deterministic and non‐deterministic query optimization techniques in the cloud computingConcurrency and Computation: Practice and Experience10.1002/cpe.524031:17Online publication date: 5-Mar-2019
  • (2018)Meta-DataflowsProceedings of the 2018 International Conference on Management of Data10.1145/3183713.3183760(1157-1172)Online publication date: 27-May-2018
  • (2018)Smooth ScanThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-018-0507-827:4(521-545)Online publication date: 1-Aug-2018
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media