Reading explain(): COLLSCAN or IXSCAN
explain with "executionStats" is MongoDB's report on how it ran a query, where the winning plan's stages say whether it read every document (COLLSCAN) or used an index (IXSCAN, then FETCH), and totalDocsExamined against nReturned says how much work each result cost.
Updated

- Category
- MongoDB
- Level
- Journeyman
- Tags
- Collection Scan, database, executionStats, explain(), Index Scan, mongodb, Query Plan