sstable-merge-dedup-newest-timestamp

Status: IN

When multiple SSTables contain the same key, `merge_sstables` keeps only the entry with the highest timestamp via heap ordering `(key, -timestamp)`, silently discarding all older versions.

Source: entries/2026/05/28/sstable-and-compaction-sstable-merge_sstables.md

Example

if result and result[0] == current_key:
    pass  # older timestamp, skip
else:
    result.append((current_key, current_value))

JSON