(#2623) - Store last_seq so compaction only traverses changed documents