Incremental update of specific columns of data in dbt

Viewed 3145

Given a table with say, 20 columns, my current model already inserts all the records into the table. However, I'd like to focus my incremental updates on a couple of columns specifically.

For example, given the following table model. I'd like to incrementally update only column C with new values when new values are available, not delete and re-insert the whole row which is more costly on indexes / performance perspective.

Existing:

id B C
n1 X 1
n2 Y 2
n3 Z 3

New:

id B C
n1 X 1.2
n2 Y 2.1
n3 Z 3.5
1 Answers
Related