Write amplification and compaction

Hard4 min read