Wormhole:一种用于内存数据管理的快速有序索引
Wormhole: A Fast Ordered Index for In-memory Data Management
摘要:
内存中的数据管理系统,如键值存储,已经成为当今大数据处理和云计算中必不可少的基础设施。它们依赖于高效的索引结构来访问数据。虽然无序索引(如哈希表)可以在O(1)时间内执行点搜索,但它们不能用于必须支持范围查询的许多场景。许多有序索引,如B+树和跳跃列表,具有O(log N)的查找成本,其中N是索引中的键数。对于托管数十亿个键的有序索引,在查找中可能需要超过30个键比较,这比哈希表上的键比较要昂贵一个数量级。随着当今数据中心的大内存和快速网络的可用性,这种O(log N)时间对依赖于有序索引的应用程序造成了沉重的负担。在本文中,我们介绍了一个新的有序索引结构,命名为Wormhole,需要O(log L)的最坏情况下查找长度为L的关键字的时间。低成本是通过同时利用三种索引结构,即哈希表,前缀树和B+树的优势,编排一个快速有序的索引。虫洞的范围操作可以通过在初始查找之后对列表进行线性扫描来执行。这种访问效率的提高并不以牺牲空间效率为代价。相反,Wormhole的索引空间与B+树和skip list的索引空间相当。实验结果表明,Wormhole在关键字查找吞吐量方面分别优于跳表,B+树,ART和Masstree高达8.4倍,4.9倍,4.3倍和6.6倍。
英文摘要:
In-memory data management systems, such as key-value stores, have become an essential infrastructure in today's big-data processing and cloud computing. They rely on efficient index structures to access data. While unordered indexes, such as hash tables, can perform point search with O(1) time, they cannot be used in many scenarios where range queries must be supported. Many ordered indexes, such as B+ tree and skip list, have a O(log N) lookup cost, where N is number of keys in an index. For an ordered index hosting billions of keys, it may take more than 30 key-comparisons in a lookup, which is an order of magnitude more expensive than that on a hash table. With availability of large memory and fast network in today's data centers, this O(log N) time is taking a heavy toll on applications that rely on ordered indexes. In this paper we introduce a new ordered index structure, named Wormhole, that takes O(log L) worst-case time for looking up a key with a length of L. The low cost is achieved by simultaneously leveraging strengths of three indexing structures, namely hash table, prefix tree, and B+ tree, to orchestrate a single fast ordered index. Wormhole's range operations can be performed by a linear scan of a list after an initial lookup. This improvement of access efficiency does not come at a price of compromised space efficiency. Instead, Wormhole's index space is comparable to those of B+ tree and skip list. Experiment results show that Wormhole outperforms skip list, B+ tree, ART, and Masstree by up to 8.4x, 4.9x, 4.3x, and 6.6x in terms of key lookup throughput, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。