从 Append-Only Log 的局限讲起,整理 LSM-Tree 的 MemTable、SSTable、WAL 读写路径,以及 Compaction 与 Write Amplification 的取舍。