How transfers work
Transfer lifecycle
Full refresh transfers
Incremental transfers
Parallelism and concurrency
FAQ
How transfers work
Prequel performs transfers by querying the source for a given recipient’s data and loading that data into the recipient’s destination, on an ongoing basis. The first transfer of each model to a destination is a full refresh transfer that loads all historical data, and subsequent transfers will attempt to transfer only the data that has changed or been added since the previous transfer.Prequel transfers from source to destination
Authorize source
Read, batch, and serialize
Authorize destination
Load to destination
- Staging-assisted loads: Batches are uploaded to a staging area (for example, a native volume or storage bucket) and then ingested using the destination’s bulk-load path. Data is normalized before staging. Prequel’s transfer logic is designed uniquely for each destination type to maximize throughput and leverage vendor-optimized patterns.
- Direct inserts: For destinations that don’t support staging-assisted loads, batches are streamed directly via insert SQL queries or API calls without external staging. As a result, these destination types can have throughput limitations; contact the Prequel team to learn more about data volumes and throughput across destination types.
- Prequel uses upserts with changes matched on primary key and duplicates resolved via the last modified timestamp to ensure data integrity and protect table state.
- With a Write-Audit-Publish architecture, data is fully staged before it is published, so your customer never sees a partially loaded incremental transfer. For how full refreshes clear and reload tables, see What a full refresh does.
- Staging files created during transfers are automatically cleaned up after transfer completion. Data is not persisted in the staging area after transfer.
- With each transfer, metadata is written to each destination per transfer. For object storage locations, see Manifest files for object storage, and for warehouses and databases, see Transfer status table.
Transfer lifecycle
Transfers are managed by an internal queue, which is used to dispatch transfers to workers. When a destination has theenabled flag set to true, Prequel will automatically enqueue transfers for that destination based on the frequency value of the destination or the organization’s default frequency.
A transfer resource always has a status corresponding to its current phase of the lifecycle:
Full refresh transfers
A full refresh reloads a model from the source. On most destination types, it replaces the model’s existing data in the destination. A model’s first transfer to a destination is a full refresh and is often the largest transfer by volume.When does a full refresh transfer run?
- Automatically on the first transfer of each model to each destination, and on every transfer after it until one moves data. See why an empty full refresh does not set a high watermark. When you add a model to an existing destination, only the new model runs a full refresh, and the other models continue transferring incrementally.
- Manually from the destination’s Admin tab with Force full refresh, where you can select specific models, or by adding
"full_refresh": trueto a Create transfer request. Use themodelsfield to limit the full refresh to specific models.
What a full refresh does
last_modified_at value transferred.
Truncate vs. drop and recreate
For warehouse (OLAP) and database (OLTP) destinations, Prequel checks the existing destination table against the model’s configuration:- Truncate: The table exists, and every column in the model’s configuration exists in it with a compatible type. The table keeps its structure, including any extra columns, partitioning, and clustering.
- Drop and recreate: The table does not exist, a column in the model’s configuration is missing from it, or a column has an incompatible type. The table is recreated from the model’s configuration.
When to use a full refresh
- When recommended
- When not recommended
- A customer accidentally drops or overwrites one or more tables in their destination system.
- A new column was added and historical data needs to be backfilled.
Incremental transfers
After each successful transfer, full refresh or incremental, Prequel records the greatestlast_modified_at value transferred as the model’s high watermark. The next transfer starts from that point.
After a full refresh that moves data, every later transfer of the model is incremental unless you request a full refresh.
Transfer parallelism and concurrency
Transfer concurrency: Within an individual transfer, operations are optimistically concurrent. Transfers can download, upload, or serialize multiple data files concurrently, regardless of the model to which they belong. Themax_concurrent_queries_per_transfer field on a source or destination limits the number of concurrent queries or API calls that can be made against the source or destination. The default for max_concurrent_queries_per_transfer is 1.
Transfer parallelism:
Transfers can run in parallel with each other as long as the following constraints hold:
- No simultaneous transfers are allowed for the same model to the same destination.
- No simultaneous integrity and transfer jobs can run against the same destination.
- The
max_concurrent_transfersfield exists on both the source and destination. It defaults to10for both sources and destinations. This field represents a hard limit on the number of simultaneous transfers involving a particular source or destination.
PENDING and expires after 6 hours.
Tags
Every transfer can carry an arbitrary set of tags, simple key/value metadata you define to group, label, or annotate transfers (for example, by environment, team, workload, etc.). Tag keys and values must match^[A-Za-z0-9_-]+$.
For more detail on how to use Tags when creating transfers and filtering transfers on tags, refer to our API Reference.
FAQ
Should I cancel a transfer that is taking a long time?
Should I cancel a transfer that is taking a long time?
RUNNING is still making progress, so it is not stuck. Cancelling it discards the work on every model still in progress, and the next transfer re-reads those models from their high watermarks.How can I tell whether a long-running transfer is making progress?
How can I tell whether a long-running transfer is making progress?
RUNNING status means the worker is still sending heartbeats. The model_metrics field on Get transfer fills in as each model finishes, so you can see which models are done.What happens when the next scheduled transfer is due while one is still running?
What happens when the next scheduled transfer is due while one is still running?
PENDING until the running transfer finishes with those models. If an identical transfer is already pending, Prequel does not enqueue another, so scheduled transfers do not pile up. Each transfer reads from the model’s high watermark when it starts running, so no data is skipped.Does disabling a destination stop all transfers?
Does disabling a destination stop all transfers?
Does Prequel retry failed transfers?
Does Prequel retry failed transfers?
Does a full refresh delete the existing data in a destination?
Does a full refresh delete the existing data in a destination?
Is the destination table empty while a full refresh runs?
Is the destination table empty while a full refresh runs?
Why was a destination table dropped and recreated instead of truncated?
Why was a destination table dropped and recreated instead of truncated?
Does a full refresh affect other models on the destination?
Does a full refresh affect other models on the destination?
models on the Create transfer request, and every other model continues transferring incrementally from its own high watermark.How do I backfill a column I just added to a model?
How do I backfill a column I just added to a model?
start_transfer_window_at and end_transfer_window_at, or run a full refresh of that model. See Schema evolution.How do I resend a time range without a full refresh?
How do I resend a time range without a full refresh?
start_transfer_window_at and end_transfer_window_at set on the Create transfer request. Warehouse and database destinations upsert the resent rows by primary key, and object storage destinations write them as new files. A full refresh with the same bounds would clear the entire table first.Can I schedule full refreshes?
Can I schedule full refreshes?
"full_refresh": true from your own scheduler.My customer moved their destination to a new schema, dataset, or bucket. Is a full refresh needed?
My customer moved their destination to a new schema, dataset, or bucket. Is a full refresh needed?
Does a full refresh remove rows that were deleted from the source?
Does a full refresh remove rows that were deleted from the source?