A log-structured merge tree keeps recent writes in a memtable, a sorted structure in memory. A full memtable is written to disk as a sorted run, an immutable file of pairs in key order. Runs are organised in levels of growing capacity, each a size ratio larger than the one above; compaction (Year 2 volume), here, merges the runs of a level into the next, the newest value of a key winning, and rewrites the result. A lookup searches the memtable, then the levels from the newest; the read amplification is the number of runs, or pages, a lookup reads.
Computer Science · Begrippenlijst
Wat is Log-structured merge tree, memtable, sorted run, read amplification?
Ook bekend als: log-structured merge tree · memtable · sorted run · read amplification