mongodb
performance_error
ai_generated
true
Slow query: COLLSCAN detected in explain plan
ID: mongodb/explain-slow-query
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 7 | active | — | — | — |
Root Cause
Query performing full collection scan without index.
genericWorkarounds
-
92% success Use explain() to identify missing indexes
-
90% success Create compound index matching query filter and sort order
Dead Ends
Common approaches that don't work:
-
Create index on every queried field
75% fail
Index overhead on writes, storage bloat
-
Cache all query results
78% fail
Stale data, memory issues