{"id":"lsm-heapq-imported-unused","text":"`heapq` is imported but never referenced in the code; `compact()` uses list sorting (`sort by (key, -seq)`) instead of a heap-based k-way merge.","truth_value":"IN","source":"entries/2026/05/28/log-structured-merge-tree-lsm.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"explanation":{"steps":[{"node":"lsm-heapq-imported-unused","truth_value":"IN","reason":"premise"}]}}