Hi, we have a collection with about 500 million documents. While doing some preparation to shard the collection, we noticed something unexpected in our test environment. When deleting documents the size of various indexes doesn’t go down. We retrieve the index sizes by running db.collection.stats().indexSizes.
Is there expected behavior? Is there a way to compact the indexes? Does mongo not give back the index, but rather re-use it?