
Airbyte
Choose an Airbyte cursor and primary key, then verify incremental updates against a two-region account.
- Source cursor
- Advance the timestamp when the usage value changes.
- Composite key
- Identify each row by account and region.
- Destination
- Verify the latest amount for each region separately.
A database sends account usage rows to a warehouse through Airbyte. Each account has one current aggregate, and the application updates it throughout the day. Use an incremental cursor that advances with each update and a primary key that represents one aggregate.
Choose the cursor and primary key deliberately
In the connection’s schema, select Incremental – Append + Deduped if the stream and destination support it. Choose the source-defined options where the connector provides them. For a configurable database table, use a maintained update timestamp and select the actual key. Use a composite key if the same account has a separate aggregate per region. Airbyte can resend records during incremental sync. Deduplication groups the destination’s current records by the selected key.
Start with one North America row for account 42 and one Europe row for account 42. Update North America from 100 to 125 units and advance its cursor. Then simulate an older version arriving again through the supported source test path. Check both the selected key and the version that ends up in the destination. An update that does not advance the cursor may never reach the destination at all.
Catch the three common setup errors
| Test | Expected behavior | What to inspect |
|---|---|---|
| Same account in two regions | Two current rows. | Confirm the key includes both account and region. |
| North America changes to 125 | The intended row updates and the Europe row is unchanged. | Compare source timestamp, destination key and the latest quantity. |
| Update without a cursor change | The test exposes why a timestamp-based incremental job can miss the update. | Check the source’s cursor maintenance and decide whether CDC or reconciliation is needed. |
Use the integration guide to choose a backfill when source rows and the warehouse no longer agree.