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

Memento Filter:一种快速、动态且鲁棒的范围过滤器

Memento Filter: A Fast, Dynamic, and Robust Range Filter

Navid Eslami, Niv Dayan

AI总结:

本文提出 Memento filter,通过键空间分区、簇指纹与后缀列表实现可插入、删除和扩展的动态范围过滤,并在 WiredTiger 中验证其性能收益。

摘要:

范围过滤器是用于回答近似范围空查询的概率数据结构。它们有助于避免处理空范围查询,并在键值存储和社交网络分析等许多应用领域中具有用例。然而,当前的范围过滤器设计不支持动态变化和增长的数据集。此外,其中若干设计在实际中常见的相关工作负载下还表现出不切实际的高假阳性率。这些障碍限制了范围过滤器在广泛用例中的适用性。我们提出 Memento filter,这是首个能够为任意工作负载提供动态性、快速操作以及鲁棒假阳性率保证的范围过滤器。Memento filter 对键空间进行分区,并根据该分区对其键进行聚类。对于每个簇,它连续存储一个指纹和一个键后缀列表。这些列表的编码使其能够适配现有的动态过滤器结构。由于从键到后缀存在定义明确的一对一映射,Memento filter 支持插入和删除,甚至可以扩展以容纳不断增长的数据集。我们在 Rank-and-Select Quotient filter 和 InfiniFilter 之上实现了 Memento filter,并证明它在提供动态性的同时,取得了与最先进技术相比具有竞争力的假阳性率和性能。由于其动态性,Memento filter 是首个适用于 B-Trees 的范围过滤器。我们通过将 Memento filter 集成到基于 B-Tree 的键值存储 WiredTiger 中来展示这一点。当 50% 的查询为空时,Memento filter 使 WiredTiger 的范围查询吞吐量翻倍,同时保持所有其他成本指标不受损害。

英文摘要:

Range filters are probabilistic data structures that answer approximate range emptiness queries. They aid in avoiding processing empty range queries and have use cases in many application domains such as key-value stores and social web analytics. However, current range filter designs do not support dynamically changing and growing datasets. Moreover, several of these designs also exhibit impractically high false positive rates under correlated workloads, which are common in practice. These impediments restrict the applicability of range filters across a wide range of use cases. We introduce Memento filter, the first range filter to offer dynamicity, fast operations, and a robust false positive rate guarantee for any workload. Memento filter partitions the key universe and clusters its keys according to this partitioning. For each cluster, it stores a fingerprint and a list of key suffixes contiguously. The encoding of these lists makes them amenable to existing dynamic filter structures. Due to the well-defined one-to-one mapping from keys to suffixes, Memento filter supports inserts and deletes and can even expand to accommodate a growing dataset. We implement Memento filter on top of a Rank-and-Select Quotient filter and InfiniFilter and demonstrate that it achieves competitive false positive rates and performance with the state-of-the-art while also providing dynamicity. Due to its dynamicity, Memento filter is the first range filter applicable to B-Trees. We showcase this by integrating Memento filter into WiredTiger, a B-Tree-based key-value store. Memento filter doubles WiredTiger's range query throughput when 50% of the queries are empty while keeping all other cost metrics unharmed.

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

↑