QuestionQ58

Verified

During development, you want to avoid re-running all upstream models while refactoring part of your project.

What could you do to save time rebuilding models without spending warehouse credits in your next command?

Explanation

The --state flag points dbt to a prior manifest, and --defer lets eligible references to unselected upstream models resolve to existing production relations instead of rebuilding them. This avoids the compute cost of rebuilding those upstream models, although running the selected models can still consume warehouse credits. (docs.getdbt.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!