Abstract
While Log-Structured Merge-trees (LSM-trees) are the backbone of modern key-value stores, their standard implementation of "range deletes" significantly degrades point lookup performance. This paper introduces GLORAN (Global Range Delete Management), a system that replaces per-level range tombstones with a centralized 2D spatial index and a predictive filter. By decoupling range delete management from LSM levels, GLORAN improves point lookup speeds by up to 10.6× and overall throughput by up to 2.7× in range-delete-heavy workloads.
The Range Delete Performance Tax
In high-performance databases like RocksDB or Cassandra, LSM-trees manage data by writing "out-of-place." Deletions are handled by writing "tombstones" rather than modifying existing data on disk. For range deletes (e.g., deleting all keys in a specific range), modern systems use a single "range tombstone" to avoid the overhead of thousands of individual markers.
However, this industry-standard approach imposes a significant performance "tax." Because range tombstones are stored locally at every level of the LSM-tree, every point lookup must check these blocks at every level to determine if the requested key was recently deleted. Benchmarks indicate that even a 1% frequency of range deletes can spike point lookup latency by 30%, while a 5% frequency can halve performance. Despite being standard for over five years, this incompatibility between deletes and lookups has remained largely unaddressed.
GLORAN: Global Range Delete Management
GLORAN shifts the architecture from local, per-level checks to a centralized management system. It relies on three core components to optimize performance while maintaining correctness.
1. 2D Effective Areas
To maintain correctness, range deletes must account for temporal sequence. A range delete $[L, R)$ at sequence number $S_1$ should not affect a key inserted at $S_2$ where $S_2 > S_1$. GLORAN represents every range delete as a 2D rectangle in a coordinate system where the x-axis is the Key Range and the y-axis is the Sequence Number (time).
2. LSM-DRtree
Managing overlapping 2D rectangles is computationally expensive for standard spatial indexes like R-trees. GLORAN utilizes a Disjoint R-tree (DR-tree), which "disjointizes" overlapping ranges so that any point in the 2D space is covered by at most one leaf node. These DR-trees are organized into an LSM-style structure to ensure high-speed index updates.
3. Entry Validity Estimator (EVE)
To minimize global index lookups, GLORAN employs the Entry Validity Estimator (EVE), a range-aware Bloom filter variant. EVE uses a "virtual bit array" to compactly encode ranges, allowing the system to quickly identify keys that have definitely not been deleted, thus bypassing the global index for the majority of valid lookups.
Key Results
The authors evaluated GLORAN using db_bench and YCSB workloads modified to include range deletions. Key results include:
- Point Lookup Speedup: GLORAN achieved up to 10.6× faster point lookups compared to the standard RocksDB implementation.
- Overall Throughput: In balanced workloads (50% lookups, 50% updates/deletes), GLORAN improved throughput by up to 2.7×.
- Memory Efficiency: The system maintains a small footprint, typically requiring only ~4MB for the global index buffer.
- Robustness: GLORAN’s performance remains stable even as the volume of range deletes increases, unlike baseline implementations which suffer significant degradation.
Conclusion
GLORAN addresses a long-standing incompatibility between range deletes and point lookups in LSM-trees. By treating range deletes as 2D spatial objects and managing them globally, it restores performance to modern key-value stores without sacrificing the efficiency of range operations.
Summary updated