SSTable
An SSTable, short for Sorted Strings Table, is a persistent, immutable file format used to store a mapping from keys to values in many log-structured merge-tree (LSM-tree) based storage systems. SSTables are created by flushing an in-memory table (memtable) to disk or by performing a compaction, and new SSTables accumulate over time as data is written. Each SSTable stores keys in strictly increasing order, enabling efficient lookups and range scans.
A typical SSTable consists of data blocks containing the actual key-value pairs, an index block that records
For access, the storage engine uses the index block to identify the data block that may contain
Role in LSM-trees: writes go to a memory structure and are flushed as SSTables; over time, compaction