Suggest an editImprove this articleRefine the answer for “Why are indexes needed?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)Indexes exist to speed up searching and filtering data in a collection: instead of scanning every document, the database finds the right ones immediately through the index, and filters, sorting, and `find()` run faster, especially on large collections. **Key point:** an index for a database is like a "table of contents in a book" - instead of flipping through the whole book, you jump straight to the page you need.Shown above the full answer for quick recall.Answer (EN)ImageIndexes exist to **speed up searching and filtering** data in a collection. ### At a junior level, the gist in 3 points: 1. **Fast search** Instead of scanning every document, the database finds the right ones through the index right away. 2. **Query optimization** Filters, sorting, and `find()` run faster, especially on large collections. 3. **Less load on the server** Queries use fewer resources and run faster. ### An analogy An index for a database is like a "table of contents in a book". Instead of flipping through the whole book, you jump straight to the page you need. **Summary:** indexes make queries faster and more efficient, especially when there's a lot of data.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.