dbt Analytics Engineering (50 Qs)•Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)
What is Slim CI in dbt and how does it reduce PR build times?
senior LevelMost AskedFormsPerformancePipes
In Simple Words:
In a 1,000-model project, running dbt build on every developer pull request takes hours and racks up thousands of warehouse credits.
Slim CI compares the current Git branch against production artifacts (manifest.json):
Using dbt build --select state:modified+ --defer --state path/to/prod/artifacts:
- dbt identifies only the models that were modified in the PR plus their direct downstream children.
- For un-modified upstream models, it defers to the existing production tables instead of rebuilding them!
- Reduces CI build times from 90 minutes to under 3 minutes.