dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)
Slim CI Workflows: Running and testing only modified models using production `manifest.json`.
senior LevelMost AskedCode ExampleFormsPerformancePipes
In Simple Words: Running 1,000 dbt models on every pull request commit costs $500 and takes 45 minutes:
- Slim CI Architecture:
- Download the production
manifest.jsonartifact generated during the last successful nightly run. - Execute:
bash
dbt build --select state:modified+ --defer --state ./prod-manifest --deferMagic: Any upstream unmodified model is not rebuilt in staging; dbt dynamically points references to the existing production table instead!- Reduces CI runtime from 45 minutes down to 2 minutes.
- Download the production