Lune

SIGMOD2024Top-tier venue

Wii: Dynamic Budget Reallocation In Index Tuning

Xiaoying Wang, Wentao Wu, Chi Wang, Vivek R. Narasayya, Surajit Chaudhuri

Abstract

Index tuning aims to find the optimal index configuration for an input workload. It is often a time-consuming and resource-intensive process, largely attributed to the huge amount of "what-if" calls made to the query optimizer during configuration enumeration. Therefore, in practice it is desirable to set a budget constraint that limits the number of what-if calls allowed. This yields a new problem of budget allocation, namely, deciding on which query-configuration pairs (QCP's) to issue what-if calls. Unfortunately, optimal budget allocation is NP-hard, and budget allocation decisions made by existing solutions can be inferior. In particular, many of the what-if calls allocated by using existing solutions are devoted to QCP's whose what-if costs can be approximated by using cost derivation, a well-known technique that is computationally much more efficient and has been adopted by commercial index tuning software. This results in considerable waste of the budget, as these what-if calls are unnecessary. In this paper, we propose "Wii, " a lightweight mechanism that aims to avoid such spurious what-if calls. It can be seamlessly integrated with existing configuration enumeration algorithms. Experimental evaluation on top of both standard industrial benchmarks and real workloads demonstrates that Wii can eliminate significant number of spurious what-if calls. Moreover, by reallocating the saved budget to QCP's where cost derivation is less accurate, existing algorithms can be significantly improved in terms of the final configuration found.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction cites An End-to-End Learning-based Cost Estimator
  • Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction cites Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites Learned Index Benefits: Machine Learning Based Index Performance Estimation
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites QueryFormer: A Tree Transformer Model for Query Plan Representation
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites Esc: An Early-Stopping Checker for Budget-aware Index Tuning
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]
  • Learned Index Benefits: Machine Learning Based Index Performance Estimation cites An End-to-End Learning-based Cost Estimator
  • QueryFormer: A Tree Transformer Model for Query Plan Representation cites An End-to-End Learning-based Cost Estimator
  • QueryFormer: A Tree Transformer Model for Query Plan Representation cites Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites Learned Index Benefits: Machine Learning Based Index Performance Estimation
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites QueryFormer: A Tree Transformer Model for Query Plan Representation
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites An End-to-End Learning-based Cost Estimator
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Learned Index Benefits: Machine Learning Based Index Performance Estimation
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites QueryFormer: A Tree Transformer Model for Query Plan Representation
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Esc: An Early-Stopping Checker for Budget-aware Index Tuning
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites An End-to-End Learning-based Cost Estimator
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Hit the Gym: Accelerating Query Execution to Efficiently Bootstrap Behavior Models for Self-Driving Database Management SystemsWan Shen Lim, Lin Ma, William Zhang, Matthew Butrovich et al.VLDB 2024 · 10 citations
  2. Esc: An Early-Stopping Checker for Budget-aware Index TuningXiaoying Wang, Wentao Wu, Vivek R. Narasayya, Surajit ChaudhuriVLDB 2025 · 4 citations
  3. UTune: Towards Uncertainty-Aware Online Index TuningChenning Wu, Sifan Chen, Wentao Wu, Yinan Jing et al.ICDE 2026
  4. Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]Wentao Wu, Anshuman Dutt, Gaoxiang Xu, Vivek R. Narasayya et al.SIGMOD 2026

Builds on13

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
  2. QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 citations
  3. Zero-Shot Cost Models for Out-of-the-box Learned Cost PredictionBenjamin Hilprecht, Carsten BinnigVLDB 2022 · 90 citations
  4. Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our FindingsTarique Siddiqui, Alekh Jindal, Shi Qiao, Hiren Patel et al.SIGMOD 2020 · 80 citations
  5. Learned Index Benefits: Machine Learning Based Index Performance EstimationJiachen Shi, Gao Cong, Xiaoli LiVLDB 2022 · 42 citations

Related papers

  1. Budget-aware Index Tuning with Reinforcement LearningWentao Wu, Chi Wang, Tarique Siddiqui, Junxiong Wang et al.SIGMOD 2022 · 33 citations
  2. Refactoring Index Tuning Process with Benefit EstimationTao Yu, Zhaonian Zou, Weihua Sun, Yu YanVLDB 2024 · 13 citations
  3. DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index TuningTarique Siddiqui, Wentao Wu, Vivek R. Narasayya, Surajit ChaudhuriVLDB 2022 · 36 citations
  4. Wred: Workload Reduction for Scalable Index TuningMatteo Brucato, Tarique Siddiqui, Wentao Wu, Vivek R. Narasayya et al.SIGMOD 2024 · 7 citations
  5. Guiding Index Tuning Exploration with Potential EstimationKecheng Luo, Ruiyang Ma, Peng Cai, Aoying Zhou et al.ICDE 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines