Lune

ICDE2023Top-tier venue

Indexing for Near-Sorted Data

Aneesh Raman, Subhadeep Sarkar, Matthaios Olma, Manos Athanassoulis

2023Year
7Citations

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 559b3468-9eaa-419f-9fdf-9f5b07c9ceba

Builds on1

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines