Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defer image to docs #5904

Merged
2 changes: 2 additions & 0 deletions website/docs/docs/cloud/about-cloud-develop-defer.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pagination_next: "docs/cloud/cloud-cli-installation"

Both the dbt Cloud IDE and the dbt Cloud CLI enable users to natively defer to production metadata directly in their development workflows.

<Lightbox src src="/img/docs/reference/defer-diagram.png" title="Defer in dbt" />
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved

By default, dbt follows these rules:

- dbt uses the production locations of parent models to resolve `{{ ref() }}` functions, based on metadata from the production environment.
Expand Down
2 changes: 2 additions & 0 deletions website/docs/reference/node-selection/defer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: "Defer"

Defer is a powerful feature that makes it possible to run a subset of models or tests in a [sandbox environment](/docs/environments-in-dbt) without having to first build their upstream parents. This can save time and computational resources when you want to test a small number of models in a large project.

<Lightbox src src="/img/docs/reference/defer-diagram.png" title="Defer in dbt" />
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved

Defer requires that a manifest from a previous dbt invocation be passed to the `--state` flag or env var. Together with the `state:` selection method, these features enable "Slim CI". Read more about [state](/reference/node-selection/syntax#about-node-selection).

An alternative command that accomplishes similar functionality for different use cases is `dbt clone` - see the docs for [clone](/reference/commands/clone#when-to-use-dbt-clone-instead-of-deferral) for more information.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading