Skip to main content
InterviewHubPRO
Section Overview
Q25

Question 25 of 50

Part 3: Enterprise Scale, Performance & CI/CD Pipelines (Senior / Staff)

50%
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:

  1. dbt identifies only the models that were modified in the PR plus their direct downstream children.
  2. For un-modified upstream models, it defers to the existing production tables instead of rebuilding them!
  3. Reduces CI build times from 90 minutes to under 3 minutes.