-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
There may be some remaining opportunities to optimize the performance of $changeStreamSplitLargeEvent in terms of memory usage and serialization time; for instance, by releasing documents instead of holding references to them, and building the fragments directly as BSONObjs. The counterargument is that generally, stages in an agg pipeline should operate only in terms of Document/Value and should not be responsible for managing or fine-tuning the the backing BSON. Perhaps, given that this stage is already tied closely to the BSON representation, it should be an exception to this rule.