BISLearner: Block-Aware Index Selection using Attention-Based Reinforcement Learning for Data Analytics
The development of data analytics services has fueled many optimizations in data scans, and indexes are one of the most important techniques to improve scan efficiency. Meanwhile, block-based data organization has become standard practice in these services, providing an opportunity for more fine-grained index selection at the block level. However, today’s systems ignore data distribution differences among blocks and usually tune indexes over the entire database table, leading to unnecessary storage costs and potential degradation in query performance. To bridge this gap, we propose BISLearner, a fast, block-aware index selecting approach based on reinforcement learning. One major challenge lies in differentiating the data distribution among data blocks. To solve this problem, BISLearner maintains simplified histograms that represent the data distribution of each block. When a query is issued, BISLearner leverages the query predicate and histogram-based block summaries to generate a specific workload representation for each block. However, such block-aware workload representation leads to an excessive number of input features, resulting in a slow or even incorrect convergence of neural networks. Inspired by the human-learning process, where more attention is devoted to the important parts of data, we design an attention-based neural model to efficiently handle the high volume of input features caused by table partitioning and select the best-suited index combinations at the block level. Additionally, to handle the expensive search space caused by attribute combinations and data partitioning, we employ heuristic-based invalid action masking at the block level to accelerate the training process. Our evaluation using PostgreSQL and Greenplum database systems demonstrates BISLearner is able to reduce job completion time by up to 28.45% compared to its best counterparts.
Authors
- Ke Zhou (ORCID: https://orcid.org/0000-0002-2161-8796)
- Rongfeng He (ORCID: https://orcid.org/0000-0003-0798-966X)
- Junxiang Miao
- Yulai Tong (ORCID: https://orcid.org/0000-0001-5587-8580)
- Hua Wang (ORCID: https://orcid.org/0000-0002-2798-7322)
- Jinhui Xu (ORCID: https://orcid.org/0009-0009-0776-0487)
- Fengrui Liu (ORCID: https://orcid.org/0009-0008-0687-4258)
- Cheng Wang
Institutions
- Tencent (China) (CN)
- Huawei Technologies (China) (CN)
- China University of Mining and Technology (CN)
- Wuhan National Laboratory for Optoelectronics (CN)
- Huazhong University of Science and Technology (CN)
Publication Details
- Journal
- ACM Transactions on Database Systems
- Published
- 2025-08-15
- DOI
- https://doi.org/10.1145/3760773
- Primary Topic
- Data Stream Mining Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Wuhan National Laboratory for Optoelectronics
- National Key Research and Development Program of China