mlsanityData to 14 Oct 2026

Budget-aware Query Tuning: An AutoML Perspective

arXiv 2404.00137 ↗First posted 29 Mar 2024cs.DB cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Modern database systems rely on cost-based query optimizers to come up with good execution plans for input queries. Such query optimizers rely on cost models to estimate the costs of candidate query execution plans. A cost model represents a function from a set of cost units to query execution cost, where each cost unit specifies the unit cost of executing a certain type of query processing operation (such as table scan or join). These cost units are traditionally viewed as constants, whose values only depend on the platform configuration where the database system runs on top of but are invariant for queries processed by the database system. In this paper, we challenge this classic view by thinking of these cost units as variables instead. We show that, by varying the cost-unit values one can obtain query plans that significantly outperform the default query plans returned by the query optimizer when viewing the cost units as constants. We term this cost-unit tuning process "query tuning" (QT) and show that it is similar to the well-known hyper-parameter optimization (HPO) problem in AutoML. As a result, any state-of-the-art HPO technologies can be applied to QT. We study the QT problem in the context of anytime tuning, which is desirable in practice by constraining the total time spent on QT within a given budget -- we call this problem budget-aware query tuning. We further extend our study from tuning a single query to tuning a workload with multiple queries, and we call this generalized problem budget-aware workload tuning (WT), which aims for minimizing the execution time of the entire workload. WT is more challenging as one needs to further prioritize individual query tuning within the given time budget. We propose solutions to both QT and WT and experimental evaluation using both benchmark and real workloads demonstrates the efficacy of our proposed solutions.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 12 of its 38 references that are in the map. First posted on arXiv 29 Mar 2024.

Builds on

12 of 38 references.

References · 12

  1. 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 699
  2. 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 470
  3. 2019AutoML: A Survey of the State-of-the-Artcited by 390
  4. 2021SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimizationcited by 230
  5. 2020Hyper-Parameter Optimization: A Review of Algorithms and Applicationscited by 114
  6. 2021OpenBox: A Generalized Black-box Optimization Servicecited by 46
  7. 2017Ease.ml: Towards Multi-tenant Resource Sharing for Machine Learning Workloadscited by 16
  8. 2021UDO: Universal Database Optimization using Reinforcement Learningcited by 11
  9. 2020Comprehensive and Efficient Workload Compressioncited by 6
  10. 2014Uncertainty Aware Query Execution Time Predictioncited by 4
  11. 2016Sampling-Based Query Re-Optimizationcited by 4
  12. 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.