Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Learned Index Lab Documentation

Welcome to the Learned Index Lab documentation portal — a pure Rust implementation and comparative benchmark suite for Piecewise Geometric Model (PGM) learned index structures.

Core Structures

  • PgmIndex: Single-pass optimal streaming Piecewise Linear Approximation (PLA) with strict $\epsilon$ error bounds and bounded local search.
  • MultilevelPgmIndex: Hierarchical recursive PGM index reducing lookup complexity to $O(h \cdot \log \epsilon)$ for massive datasets.
  • EytzingerSearch: Cache-conscious breadth-first binary search layout without approximation error.

Documentation Map

  • Architecture & Production: Internal Rust memory layout, cache-line alignment, and production deployment patterns.
  • Theoretical Foundations: Mathematical foundations of CDF approximation, streaming PLA, error corridors, and $\epsilon$ tuning.
  • Integration Cookbook: Practical production recipes for point/range queries, concurrent reads, LSM SSTables, and zone maps.
  • Statistical Benchmarks: Reproducible latency, memory, and build-time comparisons across synthetic and SOSD real-world workloads.
  • Historical Archives: Frozen snapshots of previous major release READMEs.


References

Technical Articles & Deep Dives

Seminal Research Papers

  • Kraska et al. (2018): “The Case for Learned Index Structures” (ACM SIGMOD 2018) – PDF (arXiv) · arXiv:1712.01208. Seminal paper proving that sorted indexes can be modeled as cumulative distribution function (CDF) regressions.
  • Ferragina & Vinciguerra (2020): “The PGM-index: a fully-dynamic compressed learned index with provable worst-case bounds” (PVLDB 2020) – PDF (PVLDB) · PDF (arXiv) · arXiv:1910.06169. Establishes optimal piecewise linear approximation (PLA) under bounded error corridors $\epsilon$.
  • Khuong & Morin (2017): “Array Layouts for Comparison-Based Searching” (ACM JEA 2017) – PDF (arXiv) · arXiv:1509.05053. Formalizes the cache-conscious Eytzinger array layout and branchless level-order search.

Reference Codebases & Implementations

Industry Storage Engines & Analytical Systems