-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Query Optimization 2021-05-17
The $expMovingAvg function conceptually implies that documents within a partition have some ordering to them, such that more recent values have a higher weight than older ones. Instead of returning an arbitrary result based on the non-sorted order of documents, we should require an explicit sortBy.