Beyond the Bulk-Load Honeymoon: Longitudinal Benchmarking of Learned Indexes Under Sustained Storage Workloads
Abstract
Learned indexes are often reported to be much faster than B-trees, but the benchmarks behind those numbers collapse a whole workload into one average throughput value. That average mixes the fast early operations, run just after the model was fitted, with the slower ones that come later. We call the fast early period the bulk-load honeymoon, and a single-shot benchmark cannot separate it from the throughput an index keeps up over time. We propose a longitudinal benchmarking protocol. It runs an index across many batches without ever resetting it, and records throughput, tail latency and memory for every batch. We run nine indexes on four real-world datasets and one synthetic dataset, with three seeds per configuration. On the four real-world datasets LIPP and DILI lose 36 to 45% of their first-batch throughput by the last batch, and ALEX loses 25 to 32%. Sampled P99 read latency grows by up to , and memory per stored key grows by up to 78%. This changes which index looks best. On libio the standard GRE benchmark ranks LIPP 13% ahead of ARTunsync, but by the end of our run LIPP is 11% behind it. Of the nine cases where a learned index starts ahead of ARTunsync, five end behind it. The decline continues out to 800M keys and 24 batches, and it also appears with 8 to 32 threads, with updates and deletes, at read-heavy and write-heavy mixes, and at three batch sizes. Comparing runs that end with the same table but bulk-load different amounts shows that for LIPP and DILI the loss comes from inserting keys, not from holding more of them. ALEX barely notices how the keys arrived. Rebuilding every two batches makes LIPP's last batch on libio 66% faster, at a cost of 25 to 106 seconds per rebuild at 200M keys.
Create a lesson
Metadata
- Comments
- 21 pages, 12 figures, 8 tables
Related papers
Beyond Standalone Indexes: A Pairing Paradigm for Approximate Nearest Neighbor Search
Shared title terminologycs.DBAhmed Samin Yeaser Kabir, Xiao Luo, Dimitris Dimitropoulos et al.
REWEAVE: Online Learning for Workload-Adaptive HNSW Indexes
Shared title terminologycs.DBMinghao Li, Nick Koudas, Raghav Mittal
Measuring Tabular Data Formats Cold: A Replicated Cold-Cache Benchmark of Serialization, Scan, and Index Performance on Real Datasets
Shared title terminologycs.DBAsra Fathima, Kristoffer Roberts
LoStBench: Benchmarking Longitudinal Studies Data Integration
Shared title terminologycs.DBPratik Pokharel, Oliver Kennedy, Abhi Ramtel et al.
SQL2SQLBench: A Benchmark for Database Dialect Translation
Shared title terminologycs.DBYuyang Gao, Zhaoyan Sun, Guoliang Li
MAP-Bench: Benchmarking Cross-Model Analytical Pipelines in Multi-Model Database Systems
Shared title terminologycs.DBYuhan He, Tiezheng Nie, Zihao Wen et al.