Skip to main content
QUICK REVIEW

[Paper Review] Semi-Automatic Index Tuning: Keeping DBAs in the Loop

Karl Schnaitter, Neoklis Polyzotis|arXiv (Cornell University)|Apr 8, 2010
Optimization and Search ProblemsComputer Science15 references6 citations
TL;DR

This paper introduces semi-automatic index tuning, a novel database optimization paradigm that combines online workload analysis with interactive DBA feedback to generate adaptive, human-in-the-loop index recommendations. The wfit algorithm, based on the Work Function Algorithm, ensures competitive performance guarantees while allowing DBAs to refine recommendations through feedback, achieving over 90% of optimal performance even with delayed or imperfect input.

ABSTRACT

To obtain good system performance, a DBA must choose a set of indices that is appropriate for the workload. The system can aid in this challenging task by providing recommendations for the index configuration. We propose a new index recommendation technique, termed semi-automatic tuning, that keeps the DBA "in the loop" by generating recommendations that use feedback about the DBA's preferences. The technique also works online, which avoids the limitations of commercial tools that require the workload to be known in advance. The foundation of our approach is the Work Function Algorithm, which can solve a wide variety of online optimization problems with strong competitive guarantees. We present an experimental analysis that validates the benefits of semi-automatic tuning in a wide variety of conditions.

Motivation & Objective

  • To address the challenge of selecting optimal database indices in dynamic workloads where traditional offline methods require representative workloads and online tools lack DBA control.
  • To design a system that maintains DBA oversight while leveraging automated workload analysis to reduce tuning overhead.
  • To integrate user feedback into index recommendation decisions to refine suggestions based on expert knowledge and past experience.
  • To ensure robust performance under real-world conditions such as delayed feedback and evolving workloads.
  • To provide theoretical guarantees on recommendation quality despite imperfect or delayed DBA input.

Proposed method

  • The wfit algorithm uses the Work Function Algorithm (WFA) as a foundation to generate index recommendations with competitive performance bounds in online optimization settings.
  • It dynamically adapts recommendations based on real-time workload monitoring and feedback from the DBA, modeling preferences through a feedback vector V.
  • The system maintains a stable partition of indices and uses a candidate selection function chooseCands to automatically update this partition based on workload changes.
  • Feedback is modeled as a vector V, where positive feedback increases the likelihood of recommending certain indices, and negative feedback reduces their likelihood.
  • The algorithm supports both immediate and delayed feedback, with performance degradation analyzed under increasing feedback latency (T=1 to T=75).
  • A variant, wfit-IND, assumes index independence to model scenarios where internal statistics are inaccurate, demonstrating that feedback can still improve recommendations despite flawed assumptions.

Experimental results

Research questions

  • RQ1Can a semi-automatic index tuning system maintain high performance while keeping the DBA actively involved in index creation and deletion decisions?
  • RQ2How does the integration of DBA feedback affect the quality and adaptability of index recommendations in dynamic workloads?
  • RQ3To what extent can the system recover from incorrect or delayed feedback while still achieving near-optimal performance?
  • RQ4How effective is the automatic maintenance of candidate indices (via chooseCands) in adapting to changing workload patterns?
  • RQ5What performance guarantees can be provided when combining online workload analysis with interactive feedback in index tuning?

Key findings

  • The wfit algorithm achieves over 90% of the optimal performance even when initial feedback is erroneous, demonstrating strong recovery capabilities from poor input.
  • With delayed feedback (T=75), performance drops to approximately 85% of optimal, but does not degrade further with longer delays, indicating robustness under realistic conditions.
  • Despite inaccurate internal statistics due to the index independence assumption (wfit-IND), DBA feedback significantly improves recommendation quality, showing the value of human expertise.
  • The automatic maintenance of the stable partition via chooseCands leads to measurable performance improvements, with wfit outperforming fixed-partition variants and even exceeding optimal performance in early, read-heavy phases.
  • The system maintains competitive performance bounds, ensuring that recommendations are theoretically sound even when feedback or workload shifts occur.
  • Experiments confirm that wfit can effectively balance workload-driven recommendations with user feedback, enabling a practical, interactive tuning workflow.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.