Can Learned Indexes be Built Efficiently? A Deep Dive into Sampling Trade-offs

Author:

Choi Minguk1ORCID,Yoo Seehwan1ORCID,Choi Jongmoo1ORCID

Affiliation:

1. Dankook University, Yongin, Republic of Korea

Abstract

By embedding the distribution of keys in indexing structure, learned indexes can minimize the index size and maximize the lookup performance. Yet, one of the problems in the present learned index is the long index-building time. The conventional learned index requires a complete traversal of the entire dataset, which makes it less practical than traditional index. This paper challenges the efficiency of build time to make the learned index practical. Our approach for a build time-efficient learned index is to employ sampled learning. In this paper, we present two error-bounded sampling schemes: Sample EB-PLA, and Sample EB-Histogram. Although sampling is a simple idea, there are several considerations to make it practical. For example, sampling interval, error-boundness, and index hyper-parameters are inter-related each other, presenting complicated trade-offs between build-time, index size, accuracy and lookup latency. Throughout the extensive experiments over six real-world datasets, we show that the index-building time can be efficiently reduced over an order of magnitude by our sampling schemes. The results reveal that the sampling expands the design space of learned indexes, including the build-time as well as lookup performance and index size. Our Pareto analysis shows that a learned index can be built more efficiently than a traditional index through sampling.

Funder

National Research Foundation of Korea

Institute for Information and Communications Technology Planning and Evaluation

Publisher

Association for Computing Machinery (ACM)

Reference49 articles.

1. 2007. STX B-Tree. Retrieved October 14 2023 from https://panthema.net/2007/stx-btree/

2. 2008. CassandraDB. Retrieved October 14 2023 from https://github.com/apache/cassandra

3. 2011. C Reference. Retrieved October 14 2023 from https://en.cppreference.com/w/cpp/algorithm/lower_bound

4. 2011. LevelDB. Retrieved October 14 2023 from https://github.com/google/leveldb

5. 2012. RocksDB. Retrieved October 14 2023 from https://github.com/facebook/rocksdb

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3