|
Server version 6.0.9+ adds support for splitting large change stream events.
If a change stream has large events that exceed 16 MB, a BSONObjectTooLarge exception is returned. Starting in MongoDB 6.0.9, you can use a $changeStreamSplitLargeEvent stage to split the events into smaller fragments.
You should only use $changeStreamSplitLargeEvent when strictly necessary. For example, if your application requires full document pre- or post-images, and generates large events that exceed 16 MB, use $changeStreamSplitLargeEvent.
See: $changeStreamSplitLargeEvent .
Recommend adding a new configuration so users can opt in to support this feature.
|