Skip to main content
This sample validates checkpointed Incremental sync and Upsert delivery with a realistic data volume.

1. Create source and destination tables

Run the source DDL in the source database:
Run the destination DDL in the destination database:

2. Seed 8,000 source rows

3. Configure the pipeline

  1. Create and test PostgreSQL source and destination connections.
  2. Create a pipeline with the source connection and open its workspace.
  3. In Source, discover and enable mantrix_source.large_dataset.
  4. Set its sync mode to Incremental, cursor to updated_at, preview, and save stream settings.
  5. In Destinations, add and save the PostgreSQL destination.
  6. In Transformations, select that destination and create a transformation using the source stream.
Use this model:
Save the draft, validate, preview, and publish it. Return to the destination editor, set the output table to mantrix_destination.large_dataset, set the Upsert key to id, and save. Validate from Overview, click Run all, and inspect Runs. The first run should deliver 8,000 rows.

4. Apply the incremental delta

Click Run all again. The Incremental run should process 2,025 changed rows.

5. Verify

Expected results:
  • total_rows: 10000
  • new_rows: 2000
  • updated_rows: 25