article · 1999
Accurate Query Optimization by Sub-plan Memoization
Ashraf Aboulnaga, Surajit Chaudhuri
Cited by 0Abstract and details only
Abstract
Query optimizers use approximate techniques such as histograms or sampling for result size and distinct value estimation, even though these techniques may incur high estimation errors, leading the optimizer to choose sub-optimal query execution plans. In this report, we propose a novel approach to query optimization that provides the query optimizer with exact values for the result size of operators and operator trees, which we call sub-plans, and for the number of distinct values in the output of these subplans. In our approach, the query optimizer optimizes the query and records all the sub-plans for which result size or distinct value estimates are required in a data structure that we call the sub-plan memo. After query optimization is completed, the sub-plans in the sub-plan memo are executed and their actual result sizes and the number of distinct values in their outputs are recorded in the memo. The optimizer then re-optimizes the query using the more accurate result size and distinct value information in the subplan memo, which results in potentially choosing a better query execution plan. The process is repeated if re-optimization encounters sub-plans that are not in the sub-plan memo. This technique can result in potentially increasing the optimization time sharply. However, it is very effective in choosing the optimal query execution plan. Therefore, this approach is primarily suitable for frequently executed queries embedded in application programs. We present an experimental evaluation of our proposed approach based on a prototype implementation in Microsoft SQL Server 2000.
Cite this paper
Aboulnaga, A., & Chaudhuri, S. (1999). Accurate Query Optimization by Sub-plan Memoization.
Aboulnaga, Ashraf, and Surajit Chaudhuri. “Accurate Query Optimization by Sub-plan Memoization.” 1999, p. 16.
Aboulnaga, Ashraf, and Surajit Chaudhuri. 1999. “Accurate Query Optimization by Sub-plan Memoization.”
Aboulnaga, A. and Chaudhuri, S. (1999) ‘Accurate Query Optimization by Sub-plan Memoization’.
@article{aboulnaga1999accurate,
title = {{Accurate Query Optimization by Sub-plan Memoization}},
author = {Aboulnaga, Ashraf and Chaudhuri, Surajit},
pages = {16},
year = {1999}
}Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.
Related papers
Clinical decision support system query optimizer using hybrid Firefly and controlled Genetic Algorithm
Manik Sharma, Gurvinder Singh, Rajinder Singh · Journal of King Saud University - Computer and Information Sciences · 2018
Cited by 31Open access
An iterative method for distributed database optimization
Rex Blankinship, Alan R. Hevner, S. Bing Yao · Data & Knowledge Engineering · 1996
Cited by 8
Regression Based Algorithm for Optimizing Top-K Selection in Simulation Query Language
Susan M. Farley, Alexander Brodsky, Chun‐Hung Chen · IEEE International Conference on Data Engineering Workshops (ICDEW) · 2012
Cited by 4
Counting-based normalization for multiple linear recursions
Xiaoyong Du, Zhibin Liu, Naohiro Ishii · Lecture notes in computer science · 1996
Cited by 0
Automated Configuration Parameter Classfication Model for Hive Query Plan on the Apache Yarn
Jongyeop Kim, Seong-Soo Kim, Donghoon Kim et al. · IEEE/ACIS International Conference on Big Data, Cloud Computing, and Data Science (BCD) · 2019
Cited by 0
A data-driven methodology for the automated configuration of online algorithms
Fabian Dunke, Stefan Nickel · Decision Support Systems · 2020
Cited by 13
MLComp: A Methodology for Machine Learning-based Performance Estimation and Adaptive Selection of Pareto-Optimal Compiler Optimization Sequences
Alessio Colucci, Dávid Juhász, Martin Mosbeck et al. · Design, Automation, and Test in Europe · 2021
Cited by 8Open access