Skip to main content

Data pipelines

A pipeline copies tables from one database to another, by hand or on a schedule. You describe it in chat, preview a dry run, and turn it on.

The pieces​

PieceWhat it isWhere
SourceA database to read fromWorkspace → Connections
DestinationA database to write toWorkspace → Connections
PipelineA source, a destination, the tables to copy, and a scheduleWorkspace → Pipelines

Sources and destinations are reusable: set up a database once, then use it in several pipelines. In the API and the forms, a pipeline is called a connection.

Connectors​

Today there is one connector: Postgres, as a source and as a destination.

:::note Credentials Connection details are encrypted at rest with AES-256-GCM and decrypted only when the platform connects to the database. Hosts are checked before connecting: localhost, private IP ranges and link-local addresses (including the cloud metadata endpoint) are refused unless your deployment allowlists them. :::

Build a pipeline from chat​

Name the source and the destination, and optionally the tables and how often:

sync orders and customers from Production Postgres to Warehouse every night

The build shows its steps as it goes: Found the source, Found the destination, Discovered tables, Mapped columns, Set the schedule.

  • Tables. The tables your message names, or every table in the source (up to five) if it names none.

  • Modes. A table with an updated_at, modified_at or last_modified column syncs incrementally on that column and appends. Any other table gets a full refresh that overwrites.

  • Schedule. Read from your message:

    You saySchedule (UTC)
    every 15 minutesevery 15 minutes (5 at the least)
    hourly, every hourevery hour
    nightly, every night02:00 every day
    daily, every day, every morning06:00 every day
    weekly, every week06:00 on Mondays
    nothingmanual: it syncs when you run it

If you have no source or destination yet, or the message doesn't say which, the build stops and tells you what to add or name.

The pipeline is created not active. Nothing is copied and no schedule runs until you preview a dry run and activate it.

Dry run, then activate​

The pipeline gets its own conversation. In it:

preview a dry run

The dry run reads up to 50 sample rows from each table and writes nothing. The reply shows the rows read and a preview of each table. If every table was read, you get Activate pipeline:

activate it

Activation is refused until a dry run has passed. Once active, the pipeline syncs on its schedule, or whenever you click Sync now.

Change the mapping from chat​

In the pipeline's conversation, say what to change:

RequestChange
stop syncing ordersRemove a table
also sync refundsAdd a table from the source
write customers to analytics.customersChange a destination table
full refresh for usersFull refresh, overwrite
incremental for usersIncremental on the table's cursor column, append
append / overwriteChange the write mode

You get a proposal card showing each change. Save mapping applies it. An active pipeline uses the new mapping from its next sync. A pipeline that isn't active needs a new dry run before you can activate it.

The pipeline panel​

Open a pipeline (Open canvas in Workspace → Pipelines) to see its panel:

  • Canvas: source → mapping → destination.
  • Mapping: each source table, the destination table and the mode.
  • Syncs: whether it's active, its schedule, Sync now, and the recent syncs with their row counts.

Workspace → Pipelines​

Each row shows the source and destination, the number of tables, the schedule, and a status: Healthy, Rate limited, Auth expired, Failing, No syncs yet, or Not active. Expand a row for the schedule, the next run, the last sync, whether the dry run passed, and the tables.

There is also a form at /pipelines/new (New connection) where you pick a source, a destination, the tables (Discover tables), each table's mode, an optional Post-load transform SQL and an optional cron schedule (UTC). A pipeline made with the form is active as soon as it's created. Its page, /pipelines/<id>, has Sync now, Pause schedule / Resume schedule, the sync history, and delete.

Sync modes​

ModeBehaviour
FULL_REFRESHRead the whole source table every run
INCREMENTALRead only rows past the last run's cursor value

CDC exists in the schema but is not implemented.

Write modes​

ModeBehaviour
OVERWRITEReplace the destination table's contents
APPENDAdd rows to what's already there

Transforms​

A pipeline can carry post-load SQL that runs against the destination after every table has loaded: dedupe, reshape, join against existing tables. There is no per-row mapping while data moves; transforms happen after load.

Schedules​

Each active pipeline with a cron expression gets its own Temporal Schedule. It keeps firing across restarts and deploys, and:

  • if the previous sync is still running when the next one is due, that occurrence is skipped, not queued;
  • after an outage, only occurrences missed in the last hour are caught up;
  • pausing the pipeline removes its schedule, and deleting the pipeline deletes it.

Resumable syncs​

A sync copies each table in pages of 5,000 rows. After each page lands in the destination, the sync saves a checkpoint: the cursor it reached.

  • A page that fails is retried (up to five attempts, with backoff) without restarting the table.
  • If a sync is interrupted, it resumes from its last checkpoint, for full refresh tables too, so rows already written aren't written again. At most one page is re-read.
  • An incremental table starts the next sync from where the last completed sync stopped.

A sync goes PENDING → RUNNING → COMPLETED, FAILED or CANCELLED.

When something goes wrong​

The While you were away card on the chat home points out pipelines that need a look:

  • A pipeline stopped syncing, with the error. Fix it opens a chat about it.
  • Slow syncs: when the last 3 syncs of a pipeline took 3 or more times longer than its usual sync (the median of the earlier ones) and at least 10 seconds more. It needs a history of at least 8 completed syncs. Look into it asks Why are the syncs of <pipeline> slower than usual?

Billing​

Syncs don't spend credits.