0 votes
in MongoDB by
Explain Indexes in MongoDB?

1 Answer

0 votes
by

In MongoDB, we use Indexes for executing the queries efficiently; without using Indexes, MongoDB should carry out a collection scan, i.e., scan all the documents of a collection, for selecting the documents which match the query statement. If a suitable index is available for a query, MongoDB will use an index for restricting the number of documents it should examine.

Related questions

+1 vote
asked Aug 20, 2022 in MongoDB by Robin
0 votes
asked Jan 7, 2023 in MongoDB by sharadyadav1986
...