LearnedWMP: Workload Memory Prediction Using Distribution of Query Templates
Not on the map. Why?
Abstract (arXiv)
In a modern DBMS, working memory is frequently the limiting factor when processing in-memory analytic query operations such as joins, sorting, and aggregation. Existing resource estimation approaches for a DBMS estimate the resource consumption of a query by computing an estimate of each individual database operator in the query execution plan. Such an approach is slow and error-prone as it relies upon simplifying assumptions, such as uniformity and independence of the underlying data. Additionally, the existing approach focuses on individual queries separately and does not factor in other queries in the workload that may be executed concurrently. In this research, we are interested in query performance optimization under concurrent execution of a batch of queries (a workload). Specifically, we focus on predicting the memory demand for a workload rather than providing separate estimates for each query within it. We introduce the problem of workload memory prediction and formalize it as a distribution regression problem. We propose Learned Workload Memory Prediction (LearnedWMP) to improve and simplify estimating the working memory demands of workloads. Through a comprehensive experimental evaluation, we show that LearnedWMP reduces the memory estimation error of the state-of-the-practice method by up to 47.6%. Compared to an alternative single-query model, during training and inferencing, the LearnedWMP model and its variants were 3x to 10x faster. Moreover, LearnedWMP-based models were at least 50% smaller in most cases. Overall, the results demonstrate the advantages of the LearnedWMP approach and its potential for a broader impact on query performance optimization.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 22 of its 82 references that are in the map. First posted on arXiv 22 Jan 2024.
Builds on
22 of 82 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2021Tabular Data: Deep Learning is Not All You Needcited by 530
- 2017Recent Advances in Recurrent Neural Networkscited by 89
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2016Mean Absolute Percentage Error for regression modelscited by 58
- 2014Learning Theory for Distribution Regressioncited by 48
- 2019An End-to-End Learning-based Cost Estimatorcited by 43
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2019Plan-Structured Deep Neural Network Models for Query Performance Predictioncited by 24
- 2013Distribution-Free Distribution Regressioncited by 21
10 more
- 2019Deep Distribution Regressioncited by 16
- 2020Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findingscited by 16
- 2017Bayesian Approaches to Distribution Regressioncited by 9
- 2018The Case for Automatic Database Administration using Deep Reinforcement Learningcited by 8
- 2022Forecasting SQL Query Cost at Twittercited by 5
- 2014Uncertainty Aware Query Execution Time Predictioncited by 4
- 2021Database Workload Characterization with Query Plan Encoderscited by 4
- 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databasescited by 4
- 2024Sibyl: Forecasting Time-Evolving Query Workloadscited by 4
- 2022Coefficient-based Regularized Distribution Regressioncited by 2
Built on by
Not cited yet.