-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
Implement memory tracking for pipeline sort stage.
SERVER-104602 is very similar and a good example to look off of (https://github.com/10gen/mongo/pull/37138).
- Add memory tracker to document source constructor -Increment and decrement the memory tracker to where DocumentSourceSort allocates and deallocates memory - (take a look at the execution path to get some first ideas but we will go through this together)
- Clear memory tracker at the end of execution (generally in doDispose())
- Add memory metrics to sort's explain output (add to serialize())
- Add assertions in unit tests
- Add js test
- Add sharded js test
- is related to
-
SERVER-104602 Implement memory tracking for pipeline bucketAuto stage
-
- Closed
-