No DBA? No Regret! Multi-Armed Bandits for Index Tuning of Analytical and HTAP Workloads With Provable Guarantees
Open Access
- 1 May 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Knowledge and Data Engineering
- Vol. 35 (12) , 12855-12872
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). 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. Furthermore, modern application environments like hybrid transactional and analytical processing (HTAP) systems render analytical modelling next to impossible. We propose a self-driving approach to online index selection that does not depend on 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 policies that are optimal with perfect hindsight. Our comprehensive empirical evaluation against a state-of-the-art commercial tuning tool demonstrates up to 75% speed-up in analytical processing environments and 59% speed-up in HTAP environments. Lastly, our bandit framework outperforms a Monte Carlo tree search (MCTS)-based database optimiser, providing up to 24% speed-up.Keywords
All Related Versions
Funding Information
- Australian Research Council (DP220102269)
- Discovery Early Career Researcher (DE230100366)
This publication has 53 references indexed in Scilit:
- Oracle Database In-Memory: A dual format in-memory database2015
- Contextual Combinatorial Bandit and its Application on Diversified Online Recommendation2014
- OLTP-BenchProceedings of the VLDB Endowment, 2013
- A demonstration of SQLVM2013
- Automated physical designers2012
- NoDB2012
- DB2 Design Advisor2004
- Self-tuning histogramsACM SIGMOD Record, 1999
- Implications of certain assumptions in database performance evauationACM Transactions on Database Systems, 1984
- An analysis of approximations for maximizing submodular set functions—IMathematical Programming, 1978