Skip to main content

How it works

This is how Artie handles for each table:
1

Backfill

  • Scans full table in batches, writes directly to destination
  • Can use read replica to minimize primary DB load
2

CDC

  • Reads database logs immediately
  • Queues all changes (inserts, updates, deletes) in Kafka
3

Backfill completes

  • Artie applies the queued CDC changes in order

How to kick off a backfill

By default, when you onboard a new table, Artie will kick off a backfill to copy all the historical data to your destination. To run an ad hoc backfill:
  1. Open the pipeline’s overview page.
  2. Open the More options menu and choose Backfill tables… (or Backfill history tables… for history tables).
  3. Pick the tables. If your destination supports it, choose what happens to the destination tables, then confirm.
Triggering an adhoc backfill
Subsequently, canceling a backfill can be done from the Pipeline overview page.

Destination table behavior

When triggering an ad-hoc backfill, you choose what happens to the destination table before the backfill begins:

Keep existing rows

Recommended. Artie replaces matching rows and leaves the rest. Rows deleted at the source stay in your destination.

Empty tables first

Empties the destination table, keeping its schema, indexes, and grants, then reloads it. Queries see partial data until the backfill finishes.

Drop and recreate

Recreates the table from the source, including its schema. Use this when the schema changed.
This will break any downstream objects that depend on this table, such as views and materialized views. If you only need to reload the data, use Empty tables first instead.

Rebuild and swap

Loads the backfill into a new table and swaps it with the destination table when it finishes, so queries never see the table empty or partially loaded. Snowflake and Databricks only, in early access. See Rebuild and swap backfills.

Advanced settings

Open your pipeline, click Edit pipeline, and go to the Source tab:
  • Backfill settings sets how hard this pipeline’s backfills read from your database. Standard puts a light load on the database and is safe for live traffic. Performance is faster but adds more load, so it works best on a read replica. Open Advanced tuning to see the read method, parallelism, chunk size, and batch size. Standard locks everything except batch size.
  • Advanced settings > Max concurrent backfills sets how many tables backfill at once. It defaults to your workspace limit.
To parallelize a single table’s backfill, see table optimizations.
Backfill advanced settings

How are backfills ordered?

In , tables are backfilled in the order they were added, up to the concurrency limit.

What happens to CDC changes during a backfill?

Our process continues to capture all changes to Kafka in the background. Once backfill completes:
  1. We switch to CDC stream
  2. We apply queued changes in order
  3. The table transitions to fully streaming state
This guarantees consistency and prevents stale data overwrites.