Assaf Pinhasi
01/16/2023, 2:25 PMlast_update_dt is X
• Now, I want to define an incremental sync to that table. The sync will be based on last_update_dt column.
• I want the first sync that runs to start from records where last_update_dt > X
i.e. I want the incremental sync to pick up from the current state of the destination table (vs. from scratch).
Is that possible?
[edit]
Is it possible to do something like set the connection state in the postgres db to point to the latest value of the column?Nataly Merezhuk (Airbyte)
01/17/2023, 5:08 PMAssaf Pinhasi
01/17/2023, 7:08 PMselect id from state where connection_id=<your connection id>
And then
update state set type='STREAM', namespace=<namespace> stream_name=<stream_name> state='{"cursor": <max id that you synced manually>, "stream_name": <stream_name> "cursor_field": [<your cursor field e.g "id">], "stream_namespace": <namespace> "cursor_record_count": 1}', where id=<id of record from prev step>Assaf Pinhasi
01/17/2023, 7:11 PMNataly Merezhuk (Airbyte)
01/17/2023, 8:07 PMOhad
04/17/2023, 7:03 AMOhad
04/17/2023, 7:08 AMAssaf Pinhasi
04/17/2023, 9:27 AM