Skip to content

[mongodb] [docs] Adds scanFullChangelog docs#2294

Merged
Jiabao-Sun merged 1 commit intoapache:masterfrom
yuxiqian:docs/full-changelog
Jul 13, 2023
Merged

[mongodb] [docs] Adds scanFullChangelog docs#2294
Jiabao-Sun merged 1 commit intoapache:masterfrom
yuxiqian:docs/full-changelog

Conversation

@yuxiqian
Copy link
Copy Markdown
Member

This PR updates MongoDB CDC documentations.

  • Adds MongoDB 6.0 to tested version
  • Adds support of scan.full-changelog option
  • Removes limitation that timestamp startup mode cannot be used with legacy connector

@yuxiqian yuxiqian marked this pull request as ready for review July 12, 2023 01:30
@GOODBOY008 GOODBOY008 requested a review from Jiabao-Sun July 13, 2023 07:36
@GOODBOY008
Copy link
Copy Markdown
Member

@Jiabao-Sun Can you help review this pr ? :)

Copy link
Copy Markdown
Contributor

@Jiabao-Sun Jiabao-Sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yuxiqian for the great work.
I left few comments.


### 完整事件流<a name="完整事件流" id="003" ></a>

MongoDB 6.0 添加了一项名为“前像/后像记录”的功能。具体而言,它会在每个更改发生前后,记录该更改前、更改后的完整文档信息,并和变更关联以便查阅。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yuxiqian yuxiqian force-pushed the docs/full-changelog branch from f1543d9 to 897f444 Compare July 13, 2023 08:29
@yuxiqian
Copy link
Copy Markdown
Member Author

Thanks @Jiabao-Sun's kindly review. Added more descriptions and referencing docs.

@Jiabao-Sun Jiabao-Sun merged commit 62b3271 into apache:master Jul 13, 2023
GOODBOY008 pushed a commit to GOODBOY008/flink-cdc that referenced this pull request Oct 30, 2023
GOODBOY008 pushed a commit to GOODBOY008/flink-cdc that referenced this pull request Oct 30, 2023
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants