Why is a covered query important?

Technology CommunityCategory: MongoDBWhy is a covered query important?
VietMX Staff asked 3 years ago

Since all the fields are covered in the index itself, MongoDB can match the query condition as well as return the result fields using the same index without looking inside the documents. Since indexes are stored in RAM or sequentially located on disk, such access is a lot faster.