IA2: Leveraging Instance-Aware Index Advisor with Reinforcement Learning for Diverse Workloads
Taiyi Wang, Eiko Yoneki
TL;DR
The paper tackles the Index Selection Problem (ISP) in databases where the space of candidate indexes is large and workloads vary widely. It introduces IA2, a deep reinforcement learning-based index advisor that uses the TD3-TD-SWAR architecture with instance-aware action masking and a workload-rich state representation to efficiently navigate vast action spaces. The approach is evaluated on the TPC-H benchmark, where IA2 achieves substantial runtime reductions (approximately 40% versus no indexes) and outperforms prior state-of-the-art DRL-based advisors by about 20%. The work demonstrates strong generalization to unseen workloads, rapid training efficiency, and storage-aware optimization, offering a practical and robust solution for diversified database environments.
Abstract
This study introduces the Instance-Aware Index Advisor (IA2), a novel deep reinforcement learning (DRL)-based approach for optimizing index selection in databases facing large action spaces of potential candidates. IA2 introduces the Twin Delayed Deep Deterministic Policy Gradient - Temporal Difference State-Wise Action Refinery (TD3-TD-SWAR) model, enabling efficient index selection by understanding workload-index dependencies and employing adaptive action masking. This method includes a comprehensive workload model, enhancing its ability to adapt to unseen workloads and ensuring robust performance across diverse database environments. Evaluation on benchmarks such as TPC-H reveals IA2's suggested indexes' performance in enhancing runtime, securing a 40% reduction in runtime for complex TPC-H workloads compared to scenarios without indexes, and delivering a 20% improvement over existing state-of-the-art DRL-based index advisors.
