Skip to content

Commit 01d3b99

Browse files
Update content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md
Co-authored-by: andy-stark-redis <164213578+andy-stark-redis@users.noreply.github.com>
1 parent b6cff7e commit 01d3b99

File tree

1 file changed

+8
-3
lines changed
  • content/integrate/redis-data-integration/data-pipelines/prepare-dbs

1 file changed

+8
-3
lines changed

content/integrate/redis-data-integration/data-pipelines/prepare-dbs/mongodb.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@ mongodb://${SOURCE_DB_USERNAME}:${SOURCE_DB_PASSWORD}@host:30000
7070
- For Atlas, adjust the connection string accordingly (see example below).
7171
- Set `replicaSet` and `authSource` as appropriate for your deployment.
7272

73-
## 4. Enable Change Streams and Pre/Post Images (Only if Using a Custom Key)
74-
Change Streams: Required only if you are using a custom key in your RDI pipeline. Change streams are available by default on replica sets, sharded clusters, and MongoDB Atlas.
75-
Pre/Post Images: If your RDI pipeline uses a custom key, you must enable pre- and post-images on the relevant collections to capture the document state before and after updates or deletes. This allows RDI to access both the previous and updated versions of documents during change events, ensuring accurate synchronization.
73+
## 4. Enable change streams and pre/post images (only if using a custom key)
74+
75+
Change Streams are required only if you are using a custom key in your RDI pipeline. Change streams are available by default on replica sets, sharded clusters, and MongoDB Atlas.
76+
77+
If your RDI pipeline uses a custom key, you must enable pre- and post-images on the relevant collections to capture the document state before and after updates or deletes. This allows RDI to access both the previous and updated versions of documents during change events, ensuring accurate synchronization.
78+
79+
Use the command below to enable change streams and pre/post images:
80+
7681
```javascript
7782
db.runCommand({
7883
collMod: "your_collection",

0 commit comments

Comments
 (0)