GLOSSARY · A WORD, UNPACKED
index
a structure that lets a query find matching documents without reading the whole collection.
A little more detail
An index stores keys for a field so a filter or sort can scan those keys. Without it, MongoDB reads every document. That collection scan stays correct and gets slower as the collection grows. An index on a field you do not filter by does not help. Projection, which limits returned fields, is not an index.
See it in practice
These lessons pair the idea with examples you can change and run.