stage should ideally be IXSCAN or FETCH, not COLLSCAN
query targeting (=totalDocsExamined / nReturned) should be as close to 1 as possible. Any higher value indicates the server is filtering documents out after retrieval due to a lack of a usable index. This may not be an issue for occasional queries, but can cause memory cache issues at scale.
6. Best Practices
Index fields used in filters and sorts
Avoid indexing low‑cardinality fields
Keep indexes narrow and small
Use compound indexes for common query shapes
Drop unused indexes to reduce write overhead
Avoid unbounded array growth on multikey indexes
Monitor index size to ensure it fits in RAM
7. Common Pitfalls
Over‑indexing slows writes
Wrong index order in compound indexes
Using $or without supporting indexes
Sorting without an index causes in‑memory sort
Large documents with many indexed fields increase storage cost