Changing Model Configuration
Explore how to manage and customize model configurations in dbt using config blocks, project settings, and warehouse-specific features like partitioning. Learn to apply general and model-level configurations to improve data pipeline performance and organization, with practical examples in BigQuery.
Config blocks
dbt allows us to specify configurations for our models. One way to do so is to edit the dbt_project.yml file:
We can also change the configuration at the model level and override the configuration in the dbt_project.yml file by using “config blocks.” Here’s an example of a config block for the case where we want to keep the model file stored in our code repository but disabled:
dbt always applies configuration in the following order:
First, it looks at the model configuration.
If there’s no config block in the model file, it applies the project configuration. ...