Title
Learning-based Query Performance Modeling and Prediction
Abstract
Accurate query performance prediction (QPP) is central to effective resource management, query optimization and query scheduling. Analytical cost models, used in current generation of query optimizers, have been successful in comparing the costs of alternative query plans, but they are poor predictors of execution latency. As a more promising approach to QPP, this paper studies the practicality and utility of sophisticated learning-based models, which have recently been applied to a variety of predictive tasks with great success, in both static (i.e., fixed) and dynamic query workloads. We propose and evaluate predictive modeling techniques that learn query execution behavior at different granularities, ranging from coarse-grained plan-level models to fine-grained operator-level models. We demonstrate that these two extremes offer a tradeoff between high accuracy for static workload queries and generality to unforeseen queries in dynamic workloads, respectively, and introduce a hybrid approach that combines their respective strengths by selectively composing them in the process of QPP. We discuss how we can use a training workload to (i) pre-build and materialize such models offline, so that they are readily available for future predictions, and (ii) build new models online as new predictions are needed. All prediction models are built using only static features (available prior to query execution) and the performance values obtained from the offline execution of the training workload. We fully implemented all these techniques and extensions on top of Postgre SQL and evaluated them experimentally by quantifying their effectiveness over analytical workloads, represented by well-established TPC-H data and queries. The results provide quantitative evidence that learning-based modeling for QPP is both feasible and effective for both static and dynamic workload scenarios.
Year
DOI
Venue
2012
10.1109/ICDE.2012.64
ICDE
Keywords
Field
DocType
query execution behavior,query optimizers,query scheduling,query optimization,unforeseen query,alternative query plan,learning-based query performance modeling,static workload query,training workload,accurate query performance prediction,dynamic query workloads,prediction model,learning artificial intelligence,data model,data models,accuracy,resource management,training data,predictive models,scheduling,resource manager
Resource management,SQL,Query optimization,Data mining,Data modeling,Computer science,Scheduling (computing),Workload,Sargable,Performance prediction,Database
Conference
ISSN
Citations 
PageRank 
1084-4627
63
2.01
References 
Authors
10
5
Name
Order
Citations
PageRank
Mert Akdere121510.45
Ugur Çetintemel23099208.64
Matteo Riondato334020.63
Eli Upfal44310743.13
Stanley B. Zdonik591861660.15