What are Indexes in MongoDB?

Technology CommunityCategory: MongoDBWhat are Indexes in MongoDB?
VietMX Staff asked 3 years ago

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.