Index Compaction is a process that go through the exists segments of a §202109060010 Database index, remove duplicated or (marked as) deleted keys, only keep the latest one. Merge the segments together after that if neccessary.

The goal of Compact process is to reduce fragmentation, reclaim space for the storage.