[mongodb] [docs] Adds scanFullChangelog docs#2294
Conversation
|
@Jiabao-Sun Can you help review this pr ? :) |
Jiabao-Sun
left a comment
There was a problem hiding this comment.
Thanks @yuxiqian for the great work.
I left few comments.
|
|
||
| ### 完整事件流<a name="完整事件流" id="003" ></a> | ||
|
|
||
| MongoDB 6.0 添加了一项名为“前像/后像记录”的功能。具体而言,它会在每个更改发生前后,记录该更改前、更改后的完整文档信息,并和变更关联以便查阅。 |
There was a problem hiding this comment.
Change Streams with Document Pre- and Post-Images
Starting in MongoDB 6.0, you can use change stream events to output the version of a document before and after changes (the document pre- and post-images):The pre-image is the document before it was replaced, updated, or deleted. There is no pre-image for an inserted document.
The post-image is the document after it was inserted, replaced, or updated. There is no post-image for a deleted document.
Enable changeStreamPreAndPostImages for a collection using db.createCollection(), create, or collMod.
I think we should add some reference the change stream documentation here to help user know how to enable pre-and-post images feature.
f1543d9 to
897f444
Compare
|
Thanks @Jiabao-Sun's kindly review. Added more descriptions and referencing docs. |
(cherry picked from commit 62b3271)
(cherry picked from commit 62b3271)
This PR updates MongoDB CDC documentations.
scan.full-changelogoptiontimestampstartup mode cannot be used with legacy connector