mongo-extensions
mongo-extensions copied to clipboard
Index creation enhancement
Create an extended index function, which creates a new index when the index with the given name not exists OR it skips the index creation if the index with the given name already exists and all index settings (options) are the same.
However, if the index with the same name already exists, but the index settings (options) are different, then the existing index shall be dropped and newly created with the new settings (options).