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

LITS:一种优化的字符串学习索引(扩展版)

LITS: An Optimized Learned Index for Strings (An Extended Version)

Yifan Yang, Shimin Chen

AI总结:

针对现有学习索引在字符串键上性能不佳的问题,提出LITS索引,结合哈希增强前缀表与局部线性模型,实现点操作性能较HOT和ART提升至2.43倍和2.27倍,扫描性能相当。

摘要:

索引是数据库系统中的重要组成部分。已有研究表明,对于固定大小的整数或浮点键,学习索引的性能优于传统的基于树的索引结构。然而,将学习解决方案应用于可变长度的字符串键的研究尚不充分。我们的实验表明,现有的字符串学习索引未能超越传统的字符串索引,如HOT和ART。字符串键长且大小可变,通常包含倾斜的前缀,这使得最后一英里的搜索代价高昂,并对学习模型捕获字符串键倾斜分布的能力产生不利影响。在本文中,我们提出了一种新颖的字符串键学习索引LITS(具有哈希增强前缀表和子尝试的学习索引)。我们提出了一种优化的学习模型,结合全局哈希增强前缀表(HPT)和逐节点局部线性模型,以更好地区分字符串键。此外,LITS利用紧凑的叶节点和具有PMSS模型的混合结构,以实现高效的点操作和范围操作。我们使用十一个字符串数据集的实验结果表明,在点操作方面,LITS相对于HOT和ART分别实现了高达2.43倍和2.27倍的提升,并获得了可比的扫描性能。

英文摘要:

Index is an important component in database systems. Learned indexes have been shown to outperform traditional tree-based index structures for fixed-sized integer or floating point keys. However, the application of the learned solution to variable-length string keys is under-researched. Our experiments show that existing learned indexes for strings fail to outperform traditional string indexes, such as HOT and ART. String keys are long and variable sized, and often contain skewed prefixes, which make the last-mile search expensive, and adversely impact the capability of learned models to capture the skewed distribution of string keys. In this paper, we propose a novel learned index for string keys, LITS (Learned Index with Hash-enhanced Prefix Table and Sub-tries). We propose an optimized learned model, combining a global Hash-enhanced Prefix Table (HPT) and a per-node local linear model to better distinguish string keys. Moreover, LITS exploits compact leaf nodes and hybrid structures with a PMSS model for efficient point and range operations. Our experimental results using eleven string data sets show that LITS achieves up to 2.43x and 2.27x improvement over HOT and ART for point operations, and attains comparable scan performance.

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

↑