Help MongoDB find the documents it needs without scanning the entire collection every time.
Without a useful index, MongoDB may need to examine many or even all documents in a collection to answer a query. An index creates an additional data structure that helps MongoDB locate matching documents much faster.
Indexes can dramatically improve read performance, but they are not free. They consume memory and storage and need to be updated when data changes. Understanding single-field, compound, multikey, unique, and text indexes helps you choose indexes based on the queries your application actually runs.
What you'll walk away knowing