How does mongodb decide which index to use for a query?
When a certain query is done on a mongodb collection, if there are multiple indexes that can be used to perform the query, how does mongodb choose the index for the query? for an example, in a 'order' collection, if…