SyncStudio
Documentation menu

Replace, append or update by key

What happens to the rows already in the tab when an import refreshes.

When an import refreshes, When it refreshes decides what happens to the rows already in the tab.

The three modes

ModeWhat a refresh doesUse it for
ReplaceWrites the whole result again. Rows that are no longer in the source disappear from the tab.Most imports: a current list or report.
AppendAdds the new result under the rows already there. Nothing is changed or removed.A log that grows: daily totals, events, a history of snapshots of a number.
Update by keyMatches rows by a Key column you choose. Rows already in the tab are updated in place; new keys are added below.A list where rows change: orders, tickets, deals. Notes you keep beside a row stay with that row.

Update by key is not part of the Free plan. Every paid plan includes it.

Choosing a key

The key column must identify each row once: an ID, an order number, an email address. If two rows of a result share a key, the refresh stops and names the key, rather than guessing which row to keep.

Append and changing columns

Append needs a stable list of columns, because each refresh adds rows under the old ones. If a query starts returning more or fewer columns, the refresh stops with a message saying so, and the tab is left as it was. Change the query back, or start a new tab.

Skipping a refresh when nothing changed

For sources that can say when their data last changed, such as BigQuery, Skip when nothing changed leaves the tab alone when the source tables are unchanged: no query cost, and no rewrite.