Skip to main content

How transfers work

How data moves from source to destination.

Transfer lifecycle

Transfer statuses and what each one means.

Full refresh transfers

When full refreshes run and what they do to your destination.

Incremental transfers

How transfers pick up only new and changed data.

Parallelism and concurrency

Limits on simultaneous transfers and queries.

FAQ

Answers to common questions about transfers.

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

1

Authorize source

Prequel authenticates to Sources using scoped credentials or delegated roles created by the user. Prequel validates connectivity, and restricts permissions to only what is needed to read the configured models for the intended recipient for least-privilege access with clear auditability.
2

Read, batch, and serialize

Data is read in a sliding window based on time. Each transfer moves a window of data, starting from a checkpoint based on the last batch of data transferred to ensure data integrity and efficient transfers at scale. When available, Prequel uses a source staging bucket to temporarily store the results of queries as files in object storage which are then downloaded and normalized.Prequel uses a lookback window to ensure resiliency against eventual consistency concerns in data sources. For more detail on its mechanics, see Change detection.
3

Authorize destination

Prequel authenticates to your customer’s destinations using destination-native authentication scoped to the target schemas/tables for isolation and least-privilege access aligned with destination security.
4

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.
5

Transparency and controls

Each phase emits structured logs and metrics for governance and auditability. Tags can be used to label transfers for filtering and reporting.

Transfer lifecycle

Transfers are managed by an internal queue, which is used to dispatch transfers to workers. When a destination has the enabled 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.
First transfer vs. incremental transfer performanceBecause the first transfer is often the most storage and compute intensive, its duration is not a good indicator of incremental transfer performance.

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": true to a Create transfer request. Use the models field to limit the full refresh to specific models.
Sync Now in the Admin UI requests an incremental transfer. Prequel does not trigger full refreshes underneath you besides a model’s first transfer to a destination, as described above. To run them on a recurring basis, call Create transfer from your own scheduler.

What a full refresh does

A full refresh reloads only what your source still holdsIf your source retains only partial history (e.g., a 90-day rolling window), data outside that range will be lost from every destination type that replaces existing data. Any date filters explicitly configured in a model’s source query also still apply.
Bounds limit what is reloaded, not what is clearedA full refresh with start_transfer_window_at, end_transfer_window_at, or a lower bound still clears all of the model’s existing data and reloads only that range. To resend a time range without clearing existing data, run an incremental transfer with start_transfer_window_at and end_transfer_window_at instead. This requires the model to have a high watermark, because a model without one runs a full refresh.
After a full refresh, the model’s high watermark is reset to the greatest 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.
Prequel uploads data to staging before it clears the table, and then loads the staged data. The table is empty while the staged data loads, which takes longer for larger models. On certain destination types where it is possible, clearing and loading run in a single transaction, so readers never see an empty table.

When to use a full refresh

If you’re unsure whether a full refresh fits your situation, contact Prequel support to discuss your use case.

Incremental transfers

After each successful transfer, full refresh or incremental, Prequel records the greatest last_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.
Incremental updates and eventually consistent data sourcesBy default, Prequel will query the source for slightly earlier data than the most recently transferred row. This is to provide a window in which data from eventually consistent sources can converge and still be transferred.

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. The max_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_transfers field exists on both the source and destination. It defaults to 10 for both sources and destinations. This field represents a hard limit on the number of simultaneous transfers involving a particular source or destination.
Prequel’s dispatcher enforces these rules. A transfer that cannot be dispatched stays 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

Usually not. A transfer that remains 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.
A 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.
Prequel enqueues the next transfer, and it waits as 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.
No. Disabling a destination stops its scheduled transfers. Transfers started with Sync Now or Create transfer still run.
Prequel retries certain transient errors within a transfer, such as rate limits and dropped connections, depending on the source or destination. It does not re-run a failed transfer. Instead, the next scheduled transfer resumes each failed model from its high watermark, so no data is skipped. To retry sooner, start a transfer manually.
It depends on the destination type. Warehouses, databases, Delta Lake, Iceberg, MongoDB, and Google Sheets replace the model’s existing data with a fresh copy from the source. Object storage and SFTP destinations keep existing files and write the full refresh alongside them, so the destination will contain duplicates. See What a full refresh does.
Yes, while the staged data loads into it. Prequel uploads data to staging before it truncates or drops the table, so the empty period covers only loading, and it is longer for larger models. On certain destination types where it is possible, clearing and loading run in a single transaction, so readers never see an empty table.
Prequel drops and recreates the table when it does not exist, a column in the model’s configuration is missing from it, or a column has an incompatible type. Otherwise, the table is truncated and keeps its structure. See Truncate vs. drop and recreate.
No. A full refresh only affects the models it includes. Select models in the Admin UI or pass models on the Create transfer request, and every other model continues transferring incrementally from its own high watermark.
Incremental transfers add the new column to the destination table and populate it for new and updated rows only. To populate it for existing rows, resend their time range with start_transfer_window_at and end_transfer_window_at, or run a full refresh of that model. See Schema evolution.
Run an incremental transfer with 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.
Prequel does not trigger full refreshes besides the first transfer of a model to a destination. To run them on a recurring basis, call Create transfer with "full_refresh": true from your own scheduler.
Yes. Editing a destination keeps each model’s high watermark, so transfers to the new location continue incrementally and only send new and changed rows. For warehouse and database destinations, they can also fail because the tables do not exist in the new location yet. Run a full refresh to create the tables and load all history into the new location.
Yes, for every destination type that replaces existing data, because the model’s data is cleared and reloaded from what the source currently holds. Object storage and SFTP destinations keep existing files. Incremental transfers do not remove rows that are hard deleted from the source.