Lune

SIGMOD2024Top-tier venue

Wred: Workload Reduction for Scalable Index Tuning

Matteo Brucato, Tarique Siddiqui, Wentao Wu, Vivek R. Narasayya, Surajit Chaudhuri

Abstract

Modern database systems offer index-tuning advisors that automatically identify a set of indexes to improve workload performance. Advisors leverage the optimizer's what-if API to optimize a query for a hypothetical index configuration. Because what-if calls constitute a major bottleneck of index tuning, existing techniques, such as workload compression, help reduce the number of what-if calls to speed up tuning. Unfortunately, even with small workloads and few what-if calls, tuning can still take hours due to the complexity of the queries (e.g., the number of joins, filters, group-by and order-by clauses), which increases their optimization time. This paper introduces workload reduction, a new complementary technique aimed at expediting index tuning by decreasing individual what-if call time without significantly affecting the quality of index tuning. We present an efficient workload reduction algorithm, called Wred, which rewrites each query in the original workload to eliminate column and table expressions unlikely to benefit from indexes, thereby accelerating what-if calls. We study its complexity and ability to maintain high index quality. We perform an extensive evaluation over industry benchmarks and real-world customer workloads, which shows that Wred results in a 3x median speedup in tuning efficiency over an industrial-strength state-of-the-art index advisor, with only a 3.7% median loss in improvement---where improvement is the total workload cost as estimated by the query optimizer---and results in up to 24.7x speedup with 1.8% improvement loss. Furthermore, combining Wred and Isum (a state-of-the-art workload compression technique for index tuning) results in higher speedups than either of the two techniques alone, with 10.5x median speedup and 5% median improvement loss.

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.

5 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

  • UTune: Towards Uncertainty-Aware Online Index Tuning cites Budget-aware Index Tuning with Reinforcement Learning
  • 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 Wii: Dynamic Budget Reallocation In Index Tuning
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning
  • UTune: Towards Uncertainty-Aware Online Index Tuning cites Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites Budget-aware Index Tuning with Reinforcement Learning
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites Wii: Dynamic Budget Reallocation In Index Tuning
  • Esc: An Early-Stopping Checker for Budget-aware Index Tuning cites DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning
  • Hit the Gym: Accelerating Query Execution to Efficiently Bootstrap Behavior Models for Self-Driving Database Management Systems cites Budget-aware Index Tuning with Reinforcement Learning
  • Hit the Gym: Accelerating Query Execution to Efficiently Bootstrap Behavior Models for Self-Driving Database Management Systems cites A Learned Query Rewrite System using Monte Carlo Tree Search
  • Hit the Gym: Accelerating Query Execution to Efficiently Bootstrap Behavior Models for Self-Driving Database Management Systems cites Wii: Dynamic Budget Reallocation In Index Tuning
  • Hit the Gym: Accelerating Query Execution to Efficiently Bootstrap Behavior Models for Self-Driving Database Management Systems cites DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning
  • Wii: Dynamic Budget Reallocation In Index Tuning cites Budget-aware Index Tuning with Reinforcement Learning
  • Wii: Dynamic Budget Reallocation In Index Tuning cites DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning
  • DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning cites Budget-aware Index Tuning with Reinforcement Learning
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Budget-aware Index Tuning with Reinforcement Learning
  • 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 Wii: Dynamic Budget Reallocation In Index Tuning
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites DISTILL: Low-Overhead Data-Driven Techniques for Filtering and Costing Indexes for Scalable Index Tuning
  • Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis] cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  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. Wii: Dynamic Budget Reallocation In Index TuningXiaoying Wang, Wentao Wu, Chi Wang, Vivek R. Narasayya et al.SIGMOD 2024 · 6 citations
  3. Esc: An Early-Stopping Checker for Budget-aware Index TuningXiaoying Wang, Wentao Wu, Vivek R. Narasayya, Surajit ChaudhuriVLDB 2025 · 4 citations
  4. UTune: Towards Uncertainty-Aware Online Index TuningChenning Wu, Sifan Chen, Wentao Wu, Yinan Jing et al.ICDE 2026
  5. 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 on9

  1. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu et al.VLDB 2022 · 169 citations
  2. Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsYujian Gan, Xinyun Chen, Jinxia Xie, Matthew Purver et al.EMNLP Findings 2021 · 88 citations
  3. A Learned Query Rewrite System using Monte Carlo Tree SearchXuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua FengVLDB 2022 · 85 citations
  4. 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
  5. Budget-aware Index Tuning with Reinforcement LearningWentao Wu, Chi Wang, Tarique Siddiqui, Junxiong Wang et al.SIGMOD 2022 · 33 citations

Related papers

  1. ISUM: Efficiently Compressing Large and Complex Workloads for Scalable Index TuningTarique Siddiqui, Saehan Jo, Wentao Wu, Chi Wang et al.SIGMOD 2022 · 25 citations
  2. Refactoring Index Tuning Process with Benefit EstimationTao Yu, Zhaonian Zou, Weihua Sun, Yu YanVLDB 2024 · 13 citations
  3. SCompression: Enhancing Database Knob Tuning Efficiency Through Slice-Based OLTP Workload CompressionBaoqing Cai, Yu Liu, Lin Ma, Pingqi Huang et al.VLDB 2025 · 1 citation
  4. Guiding Index Tuning Exploration with Potential EstimationKecheng Luo, Ruiyang Ma, Peng Cai, Aoying Zhou et al.ICDE 2025 · 1 citation
  5. Breaking It Down: An In-depth Study of Index AdvisorsWei Zhou, Chen Lin, Xuanhe Zhou, Guoliang LiVLDB 2024 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines