dbt - Incremental Models
You have a large sales table that updates daily. You want to use dbt incremental models to update only new sales but also occasionally rebuild the entire table to fix data issues. Which approach is best?
- Use
materialized='incremental'withis_incremental()filter onsale_date. - Run
dbt rundaily for incremental updates. - Run
dbt run --full-refreshwhen you need a full rebuild.
What is the main benefit of this approach?
