ResourceTable compaction