Hi everyone, does someone have a tutorial about In...
# replication-troubleshooting
m
Hi everyone, does someone have a tutorial about Incremental sync on MongoDB source connector: We don't intend to update the schema frequently, but it's a big database and it's a shame we have to overwrite ALL THE DATA every day (and it costs a lot). We have
createdAt
and
updatedAt
fields for every collection, I guess we should use
updatedAt
as a cursor, am I right ?
w
Its entirely dependend on the tables. If the data is immutable once it is end the table then created at would probably be fine. Otherwise yes, something like updatedAt should be the cursor. You can also turn on dedupe if the data has a primary key (or composite key) to allow for two separate tables with one being a "snapshot" of the data rather than a historical mix. The tutorial would be pretty simple, for the tables with updatedAt fields, use incremental syncs, for the tables that dont, consider splitting them off into a different connection, with a different run schedule, using full refresh.
If you still are getting tons of rows ingested with incremental, then it is because your data is changing a lot. Which is a problem that only you can solve and you need determine when and why to ingest the data.
m
Thanks Walker, I will try 🙂
n
@Walker Philips, thanks so much for helping out values critical