-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
non-destructive dbt run #137
Milestone
Comments
drewbanin
changed the title
allow dbt to run only incremental tables
tables only dbt run
Oct 18, 2016
leave views alone, truncate + re-insert into tables, run incremental models. Truncation is to avoid dropping dependent views This is for production use-cases where we don't want to trash everything and rebuild from scratch |
see also: #140 |
Closed
dbt run --non-destructive |
yu-iskw
pushed a commit
to yu-iskw/dbt
that referenced
this issue
Aug 17, 2021
…-bump Update README.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In production, we want runs to be as non-destructive as possible. If a given project has 4 incremental models and 50 views and no "table" models, that means all dbt production runs can avoid tearing down any database objects. There are two changes we need to make to actually get that to happen:
dbt run
specifies only incremental models. Currently, these views get rebuilt even though there is no need for this.This combination will result in a significantly cleaner production run; tearing down objects in production should be done only as needed.
The text was updated successfully, but these errors were encountered: