Number of Indexes per Collection
A single collection can have no more than 64 indexes.
Index Name Length
Fully qualified index names, which includes the namespace and the dot separators (i.e. ..$), cannot be longer than 128 characters.
By default, is the concatenation of the field names and index type. You can explicitly specify the to the createIndex() method to ensure that the fully qualified index name does not exceed the limit.
Number of Indexed Fields in a Compound Index
There can be no more than 31 fields in a compound index.