Wii: Dynamic Budget Reallocation In Index Tuning
Xiaoying Wang, Wentao Wu, Chi Wang, Vivek R. Narasayya, Surajit Chaudhuri
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction 引用了 An End-to-End Learning-based Cost Estimator
- Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
- UTune: Towards Uncertainty-Aware Online Index Tuning 引用了 Learned Index Benefits: Machine Learning Based Index Performance Estimation
- UTune: Towards Uncertainty-Aware Online Index Tuning 引用了 QueryFormer: A Tree Transformer Model for Query Plan Representation
- UTune: Towards Uncertainty-Aware Online Index Tuning 引用了 Esc: An Early-Stopping Checker for Budget-aware Index Tuning
- UTune: Towards Uncertainty-Aware Online Index Tuning 引用了 Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]
- Learned Index Benefits: Machine Learning Based Index Performance Estimation 引用了 An End-to-End Learning-based Cost Estimator
- QueryFormer: A Tree Transformer Model for Query Plan Representation 引用了 An End-to-End Learning-based Cost Estimator
- QueryFormer: A Tree Transformer Model for Query Plan Representation 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
- Esc: An Early-Stopping Checker for Budget-aware Index Tuning 引用了 Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
- Esc: An Early-Stopping Checker for Budget-aware Index Tuning 引用了 Learned Index Benefits: Machine Learning Based Index Performance Estimation
- Esc: An Early-Stopping Checker for Budget-aware Index Tuning 引用了 QueryFormer: A Tree Transformer Model for Query Plan Representation
- Esc: An Early-Stopping Checker for Budget-aware Index Tuning 引用了 An End-to-End Learning-based Cost Estimator
- Esc: An Early-Stopping Checker for Budget-aware Index Tuning 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 Learned Index Benefits: Machine Learning Based Index Performance Estimation
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 QueryFormer: A Tree Transformer Model for Query Plan Representation
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 Esc: An Early-Stopping Checker for Budget-aware Index Tuning
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 An End-to-End Learning-based Cost Estimator
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] 引用了 Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our Findings
引用它的顶会 Paper4
- 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 等VLDB 2024 · 10 次引用
- Esc: An Early-Stopping Checker for Budget-aware Index TuningXiaoying Wang, Wentao Wu, Vivek R. Narasayya, Surajit ChaudhuriVLDB 2025 · 4 次引用
- UTune: Towards Uncertainty-Aware Online Index TuningChenning Wu, Sifan Chen, Wentao Wu, Yinan Jing 等ICDE 2026
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]Wentao Wu, Anshuman Dutt, Gaoxiang Xu, Vivek R. Narasayya 等SIGMOD 2026
它引用的 Paper13
- An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
- QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 次引用
- Zero-Shot Cost Models for Out-of-the-box Learned Cost PredictionBenjamin Hilprecht, Carsten BinnigVLDB 2022 · 90 次引用
- Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our FindingsTarique Siddiqui, Alekh Jindal, Shi Qiao, Hiren Patel 等SIGMOD 2020 · 80 次引用
- Learned Index Benefits: Machine Learning Based Index Performance EstimationJiachen Shi, Gao Cong, Xiaoli LiVLDB 2022 · 42 次引用
相关 Paper
- Budget-aware Index Tuning with Reinforcement LearningWentao Wu, Chi Wang, Tarique Siddiqui, Junxiong Wang 等SIGMOD 2022 · 33 次引用
- Refactoring Index Tuning Process with Benefit EstimationTao Yu, Zhaonian Zou, Weihua Sun, Yu YanVLDB 2024 · 13 次引用
- 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 次引用
- Wred: Workload Reduction for Scalable Index TuningMatteo Brucato, Tarique Siddiqui, Wentao Wu, Vivek R. Narasayya 等SIGMOD 2024 · 7 次引用
- Guiding Index Tuning Exploration with Potential EstimationKecheng Luo, Ruiyang Ma, Peng Cai, Aoying Zhou 等ICDE 2025 · 1 次引用
