Skip to main content
QUICK REVIEW

[Paper Review] DBA bandits: Self-driving index tuning under ad-hoc, analytical workloads with safety guarantees

R. Malinga Perera, Bastian Oetomo|arXiv (Cornell University)|Oct 19, 2020
Data Stream Mining TechniquesComputer Science5 citations
TL;DR

This paper proposes DBA Bandits, a self-driving index tuning system that uses multi-armed bandit (MAB) reinforcement learning to optimize database indexes in real time under dynamic, ad-hoc analytical workloads. By learning directly from observed query performance instead of relying on flawed cost models, it achieves up to 75% faster query execution compared to a state-of-the-art commercial tool, with theoretical guarantees on performance convergence.

ABSTRACT

Automating physical database design has remained a long-term interest in database research due to substantial performance gains afforded by optimised structures. Despite significant progress, a majority of today's commercial solutions are highly manual, requiring offline invocation by database administrators (DBAs) who are expected to identify and supply representative training workloads. Unfortunately, the latest advancements like query stores provide only limited support for dynamic environments. This status quo is untenable: identifying representative static workloads is no longer realistic; and physical design tools remain susceptible to the query optimiser's cost misestimates (stemming from unrealistic assumptions such as attribute value independence and uniformity of data distribution). We propose a self-driving approach to online index selection that eschews the DBA and query optimiser, and instead learns the benefits of viable structures through strategic exploration and direct performance observation. We view the problem as one of sequential decision making under uncertainty, specifically within the bandit learning setting. Multi-armed bandits balance exploration and exploitation to provably guarantee average performance that converges to a fixed policy that is optimal with perfect hindsight. Our comprehensive empirical results demonstrate up to 75% speed-up on shifting and ad-hoc workloads and 28% speed-up on static workloads compared against a state-of-the-art commercial tuning tool.

Motivation & Objective

  • To address the limitations of manual and offline physical database design in dynamic, ad-hoc analytical workloads.
  • To overcome the reliance on inaccurate query optimizers that misestimate costs due to assumptions like uniform data distribution and attribute independence.
  • To develop an online, self-driving index selection system that learns from actual performance observations rather than cost models.
  • To provide theoretical safety guarantees on performance relative to the best fixed policy in hindsight.
  • To demonstrate robustness and superiority over commercial tools in shifting and unpredictable workloads.

Proposed method

  • Formulates online index selection as a multi-armed bandit problem, where each arm corresponds to a candidate index configuration.
  • Uses the C2UCB bandit algorithm with corrected regret analysis to balance exploration and exploitation while ensuring theoretical performance bounds.
  • Employs direct performance observation (actual query execution times) as the reward signal, eliminating dependence on the query optimizer’s cost estimates.
  • Starts with no indices (cold start) and incrementally learns the value of each configuration through repeated execution and feedback.
  • Imposes a memory constraint M to limit feasible index configurations, ensuring practical deployment in real systems.
  • Integrates with existing DBMSs by requiring only execution statistics, enabling plug-and-play deployment.

Experimental results

Research questions

  • RQ1Can a self-driving index tuning system achieve significant performance gains in ad-hoc, dynamic analytical workloads without relying on DBA-provided workloads?
  • RQ2Can multi-armed bandits provide provable performance guarantees in online index selection, even when cost models are inaccurate?
  • RQ3How does the MAB-based approach compare in convergence speed and performance to deep reinforcement learning (e.g., DDQN) and commercial tools?
  • RQ4Can the system maintain robustness under data skew and unpredictable query patterns?
  • RQ5Can the MAB framework be extended beyond index selection to other physical design choices like materialized views or statistics?

Key findings

  • DBA Bandits achieved up to 75% query execution speed-up on dynamic, ad-hoc workloads compared to a state-of-the-art commercial tuning tool.
  • On static workloads, the system delivered a 28% average speed-up, demonstrating consistent improvement across workload types.
  • The method outperformed a deep Q-network (DDQN) baseline in convergence speed, with faster learning and more stable performance.
  • The system maintained robust performance under data skew and unpredictable query sequences, proving resilience in real-world conditions.
  • The corrected regret analysis of the C2UCB bandit ensured theoretical safety guarantees, proving that average performance converges to within a bounded distance of the optimal fixed policy.
  • The approach is deployable in production environments, including multi-tenant and HTAP systems, due to its reliance on runtime observations rather than modeling assumptions.

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.