3
There is a collection with approximately 20 million records and each of them with about 200 searchable attributes.
Example:
{atrib001:"abc", atrib002:"123", atrib003:"1x3"... atrib200:"1zz"}
The searching application allows it to be mounted dynamically, according to the options desired by the user.
How is it possible or what is the recommendation for creating indexes in mongoDB to improve the performance of this type of research ? In addition, it is feasible to create an index for each attribute, which in this case would be 200 indexes, and rely on mongoDB to choose the best of them ?