arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.00808cs.DBcs.AI
收藏

一种基于采样和间隙插入的可插入学习指数方法

A Pluggable Learned Index Method via Sampling and Gap Insertion

Alibaba Group(阿里巴巴集团)

Yaliang Li, Daoyuan Chen, Bolin Ding, Kai Zeng, Jingren Zhou

摘要:

数据库索引便于数据检索,并有利于在现实世界的系统中的广泛应用。最近,一个新的家庭的索引,命名为学习索引,提出了学习隐藏的但有用的数据分布,并将这些信息纳入索引的学习,这导致有前途的性能改进。然而,“学习”的过程中学习的指标仍然是不够的探索。本文提出了一种基于机器学习的形式化框架来量化索引学习目标,并研究了两种通用的、可插入的技术来提高学习效率和学习效果。在形式化学习目标的指导下,结合提出的采样技术,可以有效地学习索引,并通过提出的结果驱动的间隙插入技术,学习具有增强泛化能力的精确索引。我们在真实世界的数据集上进行了大量的实验,并从索引学习目标的角度比较了几种索引方法。结果表明,所提出的框架,以帮助设计适合不同的情况下的索引的能力。此外,我们证明了所提出的采样技术的有效性,它实现了高达78倍的建设加速,同时保持非退化的索引性能。最后,我们展示了间隙插入技术可以提高现有学习索引方法的静态和动态索引性能,查询加速比高达1.59倍。我们将发布我们的代码和处理后的数据以供进一步研究,这可以从机器学习和数据库的角度对学习索引进行更多的探索。

英文摘要:

Database indexes facilitate data retrieval and benefit broad applications in real-world systems. Recently, a new family of index, named learned index, is proposed to learn hidden yet useful data distribution and incorporate such information into the learning of indexes, which leads to promising performance improvements. However, the "learning" process of learned indexes is still under-explored. In this paper, we propose a formal machine learning based framework to quantify the index learning objective, and study two general and pluggable techniques to enhance the learning efficiency and learning effectiveness for learned indexes. With the guidance of the formal learning objective, we can efficiently learn index by incorporating the proposed sampling technique, and learn precise index with enhanced generalization ability brought by the proposed result-driven gap insertion technique. We conduct extensive experiments on real-world datasets and compare several indexing methods from the perspective of the index learning objective. The results show the ability of the proposed framework to help to design suitable indexes for different scenarios. Further, we demonstrate the effectiveness of the proposed sampling technique, which achieves up to 78x construction speedup while maintaining non-degraded indexing performance. Finally, we show the gap insertion technique can enhance both the static and dynamic indexing performances of existing learned index methods with up to 1.59x query speedup. We will release our codes and processed data for further study, which can enable more exploration of learned indexes from both the perspectives of machine learning and database.

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

↑