'What is the best way to choose the multiple compound indexs on Mongodb?

If we have multiple complex queries which are using some common fields of a collection. What is the best strategy to follow for creating minimum compound indexes for those queries.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source