No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guarantees

RM Perera, B Oetomo, BIP Rubinstein… - … on Knowledge and …, 2023 - ieeexplore.ieee.org
IEEE Transactions on Knowledge and Data Engineering, 2023ieeexplore.ieee.org
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 …
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.
ieeexplore.ieee.org