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

内存搜索树的保序密钥压缩

Order-Preserving Key Compression for In-Memory Search Trees

Huanchen Zhang, Xiaoxuan Liu, David G. Andersen, Michael Kaminsky, Kimberly Keeton, Andrew Pavlo

摘要:

我们提出了高速保序编码器(HOPE)的内存搜索树。HOPE是一个快速的基于字典的压缩器,可以对任意密钥进行编码,同时保持它们的顺序。HOPE的方法是在细粒度上识别常见的关键模式,并利用熵来实现小字典的高压缩率。我们首先开发了一个理论模型来推理保序字典设计。然后,我们选择了六个代表性的压缩方案,使用这个模型,并实现他们在希望。这些方案在压缩率和编码速度之间做出不同的权衡。我们在数据库中使用的五种数据结构上评估HOPE:SuRF,ART,HOT,B+树和Prefix B+树。我们的实验表明,使用HOPE允许搜索树,以实现更低的查询延迟(高达40%以下)和更好的内存效率(高达30%以下)同时为大多数字符串键工作负载。

英文摘要:

We present the High-speed Order-Preserving Encoder (HOPE) for in-memory search trees. HOPE is a fast dictionary-based compressor that encodes arbitrary keys while preserving their order. HOPE's approach is to identify common key patterns at a fine granularity and exploit the entropy to achieve high compression rates with a small dictionary. We first develop a theoretical model to reason about order-preserving dictionary designs. We then select six representative compression schemes using this model and implement them in HOPE. These schemes make different trade-offs between compression rate and encoding speed. We evaluate HOPE on five data structures used in databases: SuRF, ART, HOT, B+tree, and Prefix B+tree. Our experiments show that using HOPE allows the search trees to achieve lower query latency (up to 40\% lower) and better memory efficiency (up to 30\% smaller) simultaneously for most string key workloads.

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

↑