Back
It actually depends on the usage. MongoDB has a lot of options on how you deal with indexes. You can describe compound indexes or single indexes; Mongo can intersect single indexes in other to execute your query. There are other concepts, like an index to cover your query, which has some limitations. So it really depends on each particular query you want to make and their expected document format.
To help you gain a better understanding, here is a Full Stack Developer Certification Course provided by Intellipaat.
31k questions
32.8k answers
501 comments
693 users