Convert a full-refresh dbt model to incremental and show the runtime delta
A dbt model is correct but a full refresh is too slow or too expensive to run routinely, and gets slower as history grows.
- Transformation
- Any domain
Larger outcome
5 RecipesRecipes for improving dbt performance and maintainability while preserving required behaviour.
A dbt model is correct but a full refresh is too slow or too expensive to run routinely, and gets slower as history grows.
A model has grown into one long query with logic packed inline, and nobody dares change it because dashboards and reports depend on its output.
Part of a dbt project is moving to another warehouse, and a macro its models call only compiles, or only returns correct values, on the old one.
A new dbt model must be brought up to date incrementally on each run, and nobody can show that a rerun or a re-delivery of records already applied leaves it unchanged.
A business rule in an incremental model was corrected, and only a known date range of published history should be restated.