Skip to content

Create MongoDB index statements for all collections

In order to get better performance, any field that is sorted on should have an index created within the MongoDB instance. In addition, any field that should be enabled for text search will need to be indexed as such within the collection as well.