0
0
dbtdata~5 mins

Incremental strategies (append, merge, delete+insert) in dbt - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the append incremental strategy in dbt?
The append strategy adds new rows to an existing table without changing or removing existing data. It is like adding new pages to a notebook without erasing old pages.
Click to reveal answer
intermediate
Explain the merge incremental strategy in dbt.
Merge updates existing rows if they match a key and inserts new rows if they don't exist. Think of it as updating your contact list: change info if contact exists, add new contact if not.
Click to reveal answer
intermediate
What does the delete+insert incremental strategy do?
Delete+insert removes rows that match certain conditions and then inserts fresh data. It's like erasing a page in your notebook and rewriting it with updated notes.
Click to reveal answer
beginner
Why use incremental strategies in dbt?
Incremental strategies save time and resources by only processing new or changed data instead of rebuilding entire tables every time.
Click to reveal answer
beginner
Which incremental strategy would you use if you want to keep all old data and just add new rows?
You would use the append strategy because it only adds new rows without changing existing data.
Click to reveal answer
Which incremental strategy updates existing rows and adds new rows in dbt?
AMerge
BAppend
CDelete+Insert
DFull Refresh
What does the append strategy do in dbt?
ADeletes old rows and inserts new ones
BUpdates existing rows only
CAdds new rows without changing existing data
DRebuilds the entire table
When would you use delete+insert strategy?
AWhen you want to append only
BWhen you want to update some rows and add new ones
CWhen you want to keep all old data
DWhen you want to remove certain rows and replace them with fresh data
Which strategy is best to save time by processing only new or changed data?
AIncremental Strategies
BFull Refresh
CManual Table Drop
DAppend Only
In dbt, what key concept helps identify rows to update or delete in incremental models?
AIndex
BPrimary Key
CForeign Key
DPartition
Describe the differences between append, merge, and delete+insert incremental strategies in dbt.
Think about how each strategy handles existing data and new data.
You got /3 concepts.
    Explain why incremental strategies are useful in data transformation workflows.
    Consider the cost of processing large datasets repeatedly.
    You got /3 concepts.