Allow to import/export indexes
Add import/export index capability via Compass.
Would be nice to also to automatically generate the createIndexes (https://docs.mongodb.com/manual/reference/command/createIndexes/) command for build a set of indexes.
4
votes
![](https://secure.gravatar.com/avatar/a953ce375bdf82ec7e3d014849f4c769?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
The article at https://www.alexbevi.com/blog/2021/09/24/copy-mongodb-index-definitions/ has a script that can be used to automatically generate the createIndexes commands.