{"id":"lsm-memtable-threshold-triggers-flush","text":"When the number of entries in the active memtable reaches `memtable_threshold`, the memtable is automatically frozen and flushed to a new SSTable on disk","truth_value":"IN","source":"entries/2026/05/28/log-structured-merge-tree-test_lsm.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"if len(self._memtable) >= self._memtable_threshold:\n    self._flush()"},"explanation":{"steps":[{"node":"lsm-memtable-threshold-triggers-flush","truth_value":"IN","reason":"premise"}]}}