{"id":"flush-creates-sequential-sstables","text":"Each `_flush` call creates an SSTable file with a strictly increasing sequence number (zero-padded filename for lexicographic = numeric sort), preserving newest-last ordering in `self._sstables`","truth_value":"IN","source":"entries/2026/05/29/log-structured-merge-tree-lsm-_flush.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"seq = len(self._sstables) + 1\npath = os.path.join(self._dir, f\"sstable_{seq:06d}.sst\")\nsst = SSTable.write(path, seq, sorted(frozen.items()))\nself._sstables.append(sst)"},"explanation":{"steps":[{"node":"flush-creates-sequential-sstables","truth_value":"IN","reason":"premise"}]}}