Table of Contents
Fetching ...

UTune: Towards Uncertainty-Aware Online Index Tuning

Chenning Wu, Sifan Chen, Wentao Wu, Yinan Jing, Zhenying He, Kai Zhang, X. Sean Wang

TL;DR

The paper tackles online index tuning under workload drift and limited feedback by introducing UTune, which uses operator-level CAM predictors and an uncertainty quantification framework. Cost estimation is corrected via uncertainty-aware CAMs, and index selection blends immediate benefits with exploration value through an uncertainty-weighted policy. Empirical results on TPC-H, TPC-DS, and JOB show UTune outperforms state-of-the-art baselines in workload-time reduction and convergence speed, particularly under dynamic workloads. The work demonstrates that incorporating model and data uncertainty into both cost correction and exploration dramatically improves robustness and efficiency in online index tuning with practical implications for real-world DBMS tuning.

Abstract

There have been a flurry of recent proposals on learned benefit estimators for index tuning. Although these learned estimators show promising improvement over what-if query optimizer calls in terms of the accuracy of estimated index benefit, they face significant limitations when applied to online index tuning, an arguably more common and more challenging scenario in real-world applications. There are two major challenges for learned index benefit estimators in online tuning: (1) limited amount of query execution feedback that can be used to train the models, and (2) constant coming of new unseen queries due to workload drifts. The combination of the two hinders the generalization capability of existing learned index benefit estimators. To overcome these challenges, we present UTune, an uncertainty-aware online index tuning framework that employs operator-level learned models with improved generalization over unseen queries. At the core of UTune is an uncertainty quantification mechanism that characterizes the inherent uncertainty of the operator-level learned models given limited online execution feedback. We further integrate uncertainty information into index selection and configuration enumeration, the key component of any index tuner, by developing a new variant of the classic $ε$-greedy search strategy with uncertainty-weighted index benefits. Experimental evaluation shows that UTune not only significantly improves the workload execution time compared to state-of-the-art online index tuners but also reduces the index exploration overhead, resulting in faster convergence when the workload is relatively stable.

UTune: Towards Uncertainty-Aware Online Index Tuning

TL;DR

The paper tackles online index tuning under workload drift and limited feedback by introducing UTune, which uses operator-level CAM predictors and an uncertainty quantification framework. Cost estimation is corrected via uncertainty-aware CAMs, and index selection blends immediate benefits with exploration value through an uncertainty-weighted policy. Empirical results on TPC-H, TPC-DS, and JOB show UTune outperforms state-of-the-art baselines in workload-time reduction and convergence speed, particularly under dynamic workloads. The work demonstrates that incorporating model and data uncertainty into both cost correction and exploration dramatically improves robustness and efficiency in online index tuning with practical implications for real-world DBMS tuning.

Abstract

There have been a flurry of recent proposals on learned benefit estimators for index tuning. Although these learned estimators show promising improvement over what-if query optimizer calls in terms of the accuracy of estimated index benefit, they face significant limitations when applied to online index tuning, an arguably more common and more challenging scenario in real-world applications. There are two major challenges for learned index benefit estimators in online tuning: (1) limited amount of query execution feedback that can be used to train the models, and (2) constant coming of new unseen queries due to workload drifts. The combination of the two hinders the generalization capability of existing learned index benefit estimators. To overcome these challenges, we present UTune, an uncertainty-aware online index tuning framework that employs operator-level learned models with improved generalization over unseen queries. At the core of UTune is an uncertainty quantification mechanism that characterizes the inherent uncertainty of the operator-level learned models given limited online execution feedback. We further integrate uncertainty information into index selection and configuration enumeration, the key component of any index tuner, by developing a new variant of the classic -greedy search strategy with uncertainty-weighted index benefits. Experimental evaluation shows that UTune not only significantly improves the workload execution time compared to state-of-the-art online index tuners but also reduces the index exploration overhead, resulting in faster convergence when the workload is relatively stable.
Paper Structure (39 sections, 11 equations, 15 figures, 6 tables, 4 algorithms)

This paper contains 39 sections, 11 equations, 15 figures, 6 tables, 4 algorithms.

Figures (15)

  • Figure 1: Overview of UTune.
  • Figure 2: Feature representation of relational operators for operator-level cost models in UTune
  • Figure 3: An example of uncertainty-aware cost correction
  • Figure 4: Improvement of workload execution time when integrating greedy search with index benefit estimators
  • Figure 5: Validation of CAM model design choices.
  • ...and 10 more figures

Theorems & Definitions (2)

  • Definition 1: Entropy
  • Example 1