From 6cf312f5459ffa18a06336f529c34e04e0d3429a Mon Sep 17 00:00:00 2001 From: Jordan Smith <45415425+jordan-smith721@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:39:10 -0700 Subject: [PATCH] DOCSP-31907 - Add paragraph from server docs (#460) --- source/fundamentals/crud/read-operations/change-streams.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/fundamentals/crud/read-operations/change-streams.txt b/source/fundamentals/crud/read-operations/change-streams.txt index 7f455de99..f6220b937 100644 --- a/source/fundamentals/crud/read-operations/change-streams.txt +++ b/source/fundamentals/crud/read-operations/change-streams.txt @@ -142,6 +142,11 @@ Split Large Change Stream Events Starting in MongoDB 7.0, you can use the ``$changeStreamSplitLargeEvent`` aggregation stage to split events that exceed 16 MB into smaller fragments. + +Use ``$changeStreamSplitLargeEvent`` only when strictly necessary. For +example, use ``$changeStreamSplitLargeEvent`` if your application requires full +document pre- or post-images, and generates events that exceed 16 MB. + The $changeStreamSplitLargeEvent stage returns the fragments sequentially. You can access the fragments by using a change stream cursor. Each fragment includes a ``SplitEvent`` object containing the following fields: