[Paper Review] REMIX: Efficient Range Query for LSM-trees
This paper proposes REMIX, a space-efficient, persistent index structure that maintains a globally sorted view of key-value (KV) data across multiple LSM-tree table files. By enabling binary search and sequential retrieval without key comparisons, REMIX accelerates range queries in write-optimized LSM-tree stores like RemixDB, achieving high read performance with low write amplification using tiered compaction—outperforming state-of-the-art systems in both read and write workloads.
LSM-tree based key-value (KV) stores organize data in a multi-level structure for high-speed writes. Range queries on traditional LSM-trees must seek and sort-merge data from multiple table files on the fly, which is expensive and often leads to mediocre read performance. To improve range query efficiency on LSM-trees, we introduce a space-efficient KV index data structure, named REMIX, that records a globally sorted view of KV data spanning multiple table files. A range query on multiple REMIX-indexed data files can quickly locate the target key using a binary search, and retrieve subsequent keys in sorted order without key comparisons. We build RemixDB, an LSM-tree based KV-store that adopts a write-efficient compaction strategy and employs REMIXes for fast point and range queries. Experimental results show that REMIXes can substantially improve range query performance in a write-optimized LSM-tree based KV-store.
Motivation & Objective
- To address the poor range query performance in LSM-tree-based key-value stores that use write-optimized compaction strategies like tiered compaction.
- To eliminate the need for expensive on-the-fly sort-merge operations during range queries by maintaining a persistent, globally sorted view of KV data.
- To enable high read efficiency without sacrificing write efficiency, overcoming the traditional trade-off between read and write performance in LSM-trees.
- To design a compact index structure that supports fast point and range queries with minimal I/O and computation overhead.
Proposed method
- Introduce REMIX, a compact, persistent multi-table index that maintains a globally sorted view of KV data spanning multiple LSM-tree table files.
- Use binary search on REMIX to quickly locate the starting key of a range query, eliminating the need for merging iterators.
- Retrieve subsequent keys in sorted order directly from the REMIX index without key comparisons or additional I/O.
- Integrate REMIX with a write-efficient tiered compaction strategy to minimize write amplification while maintaining fast read performance.
- Build RemixDB, a full LSM-tree-based key-value store that uses REMIX for fast point and range queries and tiered compaction for low write cost.
- Leverage modern storage performance (e.g., SSDs, 3D XPoint) where random and sequential I/O are nearly equivalent, reducing the need for physical data sorting.
Experimental results
Research questions
- RQ1Can a compact, persistent index structure be designed to provide fast range queries in LSM-trees without incurring high write amplification?
- RQ2Does maintaining a globally sorted view of KV data across multiple table files reduce the number of table accesses and key comparisons during range queries?
- RQ3Can REMIX achieve both low write amplification and high read performance simultaneously in a tiered compaction-based LSM-tree?
- RQ4How does REMIX compare to existing filtering techniques (e.g., Bloom filters, SuRF, Rosetta) in terms of CPU, memory, and I/O overhead for range queries?
- RQ5To what extent does REMIX improve performance in real-world workloads with mixed read and write patterns?
Key findings
- REMIX significantly improves range query performance by enabling binary search and sequential retrieval across multiple overlapping table files without key comparisons.
- RemixDB achieves superior performance in both read and write operations compared to state-of-the-art LSM-tree-based key-value stores, especially under mixed workloads.
- The use of REMIX allows RemixDB to maintain low write amplification through tiered compaction while still delivering fast range query performance.
- Unlike filtering-based approaches, REMIX provides consistent performance improvements regardless of query selectivity or key distribution.
- The performance gain from REMIX is most pronounced in large range queries and workloads with high overlap across table files, where filtering techniques fail to reduce I/O.
- Experimental results confirm that REMIX reduces the number of table accesses and I/O operations during range queries, leading to faster response times and lower CPU usage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.