mongodb
performance_error
ai_generated
true
Slow query detected: planMillis exceeds threshold
ID: mongodb/slow-query-warning
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 7 | active | — | — | — |
Root Cause
Query execution time exceeds profiling threshold.
genericWorkarounds
-
92% success Use explain() to analyze query plan and add targeted indexes
-
88% success Enable profiler level 1 and analyze db.system.profile
Dead Ends
Common approaches that don't work:
-
Increase profiling threshold to hide slow queries
80% fail
Masks performance issues
-
Add indexes on every field
78% fail
Index overhead on writes, storage bloat