singer-io / tap-shopify

Singer.io tap for extracting Shopify data
GNU Affero General Public License v3.0
57 stars 89 forks source link

update bookmarking for interrupted sync #166

Closed RushiT0122 closed 1 year ago

RushiT0122 commented 1 year ago

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 with since_id and on resuming interrupted sync set window between (bookmark, updated_at_max). 

On completion of next sync,

This solution will make sure on resuming the interrupted sync, record id#7 (replication_key=109) will be synced.

QA steps

Risks

Rollback steps