mongodb
config_error
ai_generated
true
MongoServerError: time series granularity cannot be changed
ID: mongodb/time-series-granularity
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 7 | active | — | — | — |
Root Cause
Time series collection granularity is immutable after creation.
genericWorkarounds
-
90% success Plan granularity before creating collection: seconds, minutes, or hours
-
85% success Create new collection with correct granularity and migrate data
Dead Ends
Common approaches that don't work:
-
Drop and recreate collection
85% fail
Loses all time series data
-
Ignore granularity mismatch
72% fail
Suboptimal bucket packing