Indexing for Near-Sorted Data
Aneesh Raman, Subhadeep Sarkar, Matthaios Olma, Manos Athanassoulis
摘要
Indexing in modern data systems facilitates efficient query processing when the selection predicate is on an indexed key. As new data is ingested, indexes are gradually populated with incoming entries. In that respect, indexing can be perceived as the process of adding structure to incoming, otherwise unsorted data. Adding structure, however, comes at a cost. Instead of simply appending the incoming entries, we insert them into the index. If the ingestion order matches the indexed attribute order, the ingestion cost is entirely redundant and can be avoided altogether (e.g., via bulk loading in a B + -tree). However, classical tree index designs do not benefit when incoming data comes with an implicit ordering that is close to being sorted, but not fully sorted.
In this paper, we study how indexes can exploit nearsortedness. Particularly, we identify sortedness as a resource that can accelerate index ingestion. We propose a new sortednessaware (SWARE) design paradigm that combines opportunistic bulk loading, index appends, variable node fill and split factors, and an intelligent buffering scheme, to optimize ingestion and read queries in a tree index in the presence of near-sortedness. We apply SWARE to two state-of-the-art search trees (B +tree and B -tree), and we demonstrate that their Sortedness-Aware counterparts (SA B + -tree and SA B -tree) outperform their respective baselines by up to 8.8× (SA B + -tree) and 7.8× (SA B -tree) for a write-heavy workload in the presence of data sortedness, while offering competitive read performance, leading to overall benefits between 1.3× -5× for mixed read/write workloads with near-sorted data. Overall, we highlight that SWARE can be applied to other tree-like data structures to accelerate index ingestion and improve their performance in the presence of data sortedness.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper1
相关 Paper
- Blink-hash: An Adaptive Hybrid Index for In-Memory Time-Series DatabasesHokeun Cha, Xiangpeng Hao, Tianzheng Wang, Huanchen Zhang 等VLDB 2023 · 15 次引用
- Learned Index: A Comprehensive Experimental EvaluationZhaoyan Sun, Xuanhe Zhou, Guoliang LiVLDB 2023 · 87 次引用
- Order-Preserving Key Compression for In-Memory Search TreesHuanchen Zhang, Xiaoxuan Liu, David G. Andersen, Michael Kaminsky 等SIGMOD 2020 · 31 次引用
- Foresight Indexing: Accelerating B+tree Index with Programmable Switches on the Network PathFeiyu Wang, Qiuheng Yin, Yixin Zhang, Tong YangINFOCOM 2026
- Operation-aware Hybrid Locking for Modern In-Memory IndexesVishal Gupta, Martin Sanchez Lopez, Victor Laforet, Jean-Pierre Lozi 等VLDB 2026
