InterviewSolution
| 1. |
What Are Indexes In Mongodb? |
|
Answer» INDEXES support the efficient execution of queries in MONGODB. Without indexes, MongoDB MUST perform a collection scan, i.e. scan every document in a collection, to select those documents that MATCH the query statement. If an appropriate index exists for a query, MongoDB can use the index to limit the number of documents it must inspect. Indexes support the efficient execution of queries in MongoDB. Without indexes, MongoDB must perform a collection scan, i.e. scan every document in a collection, to select those documents that match the query statement. If an appropriate index exists for a query, MongoDB can use the index to limit the number of documents it must inspect. |
|