Indexing for Near-Sorted Data
Aneesh Raman, Subhadeep Sarkar, Matthaios Olma, Manos Athanassoulis
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 559b3468-9eaa-419f-9fdf-9f5b07c9cebaBuilds on1
Related papers
- Blink-hash: An Adaptive Hybrid Index for In-Memory Time-Series DatabasesHokeun Cha, Xiangpeng Hao, Tianzheng Wang, Huanchen Zhang et al.VLDB 2023 · 15 citations
- Learned Index: A Comprehensive Experimental EvaluationZhaoyan Sun, Xuanhe Zhou, Guoliang LiVLDB 2023 · 87 citations
- Order-Preserving Key Compression for In-Memory Search TreesHuanchen Zhang, Xiaoxuan Liu, David G. Andersen, Michael Kaminsky et al.SIGMOD 2020 · 31 citations
- 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 et al.VLDB 2026
