arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.03471cs.DB
收藏

学习型自适应索引

Learned Adaptive Indexing

Suvam Kumar Das, Suprio Ray

AI总结:

针对动态工作负载下传统学习型索引需预先构建的挑战,提出一种随查询动态构建的学习型自适应索引,利用工作负载预测提升性能,实验显示查询性能提升1.2-5.6倍。

摘要:

索引可以显著提升关系数据库中的搜索性能。然而,如果查询工作负载频繁变化或持续发生新的数据更新,那么预先构建传统索引用于查询处理可能并不划算。自适应索引是一种在查询处理过程中作为副产品动态构建索引的技术。近年来,数据库索引研究开辟了新方向,即采用机器学习模型进行索引。这些索引被称为学习型索引,在内存占用和查询性能方面可能比B+-树等传统索引更高效。然而,学习型索引必须预先构建,并需要提前训练模型,这在工作负载频繁变化的动态场景中成为挑战。据我们所知,目前尚无用于自适应索引的学习型索引。我们提出了一种新颖的学习型自适应索引方法。它随着查询的提交而动态构建,并利用学习模型对数据进行索引。为了提升查询性能,我们采用了一种查询工作负载预测技术,该技术基于历史工作负载数据来预测未来工作负载。我们针对各种查询工作负载,将我们的学习型自适应索引方法与现有自适应索引进行了评估。结果表明,在大多数情况下,我们的方法性能优于其他方法,查询性能提升了1.2倍至5.6倍。

英文摘要:

Indexes can significantly improve search performance in relational databases. However, if the query workload changes frequently or new data updates occur continuously, it may not be worthwhile to build a conventional index upfront for query processing. Adaptive indexing is a technique in which an index gets built on the fly as a byproduct of query processing. In recent years, research in database indexing has taken a new direction where machine learning models are employed for the purpose of indexing. These indexes, known as learned indexes, can be more efficient compared to traditional indexes such as B+-tree in terms of memory footprints and query performance. However, a learned index has to be constructed upfront and requires training the model in advance, which becomes a challenge in dynamic situations when workload changes frequently. To the best of our knowledge, no learned indexes exist yet for adaptive indexing. We propose a novel learned approach for adaptive indexing. It is built on the fly as queries are submitted and utilizes learned models for indexing data. To enhance query performance, we employ a query workload prediction technique that makes future workload projection based on past workload data. We have evaluated our learned adaptive indexing approach against existing adaptive indexes for various query workloads. Our results show that our approach performs better than others in most cases, offering 1.2x - 5.6x improvement in query performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑