Closed RushiT0122 closed 1 year ago
Consider we have following records to sync from the source,
(order_id | replication_key):
Before sync starts,
On completion of next sync,
In this scenario, on resuming sync updated record id#7 with (replication_key=109) will not sync with current implementation.
Add updated_at_max value along with since_id and on resuming interrupted sync set window between (bookmark, updated_at_max).
updated_at_max
since_id
since_id=8
This solution will make sure on resuming the interrupted sync, record id#7 (replication_key=109) will be synced.
Description of change
Consider we have following records to sync from the source,
(order_id | replication_key):
Before sync starts,
Scenario
On completion of next sync,
In this scenario, on resuming sync updated record id#7 with (replication_key=109) will not sync with current implementation.
Solution:
Add
updated_at_max
value along withsince_id
and on resuming interrupted sync set window between (bookmark, updated_at_max).On completion of next sync,
since_id=8
from the bookmarkThis solution will make sure on resuming the interrupted sync, record id#7 (replication_key=109) will be synced.
QA steps
Risks
Rollback steps