View Materialization
When employing the view
materialization strategy, dbt™️ reconstructs your model as a view during each run using a create view as
statement.
Advantages:
Storage efficiency: No additional data storage is required.
Real-time data: Views based on source data always reflect the most current records.
Disadvantages:
Performance issues: Views that involve substantial transformations or are layered upon other views may experience slow query times.
Best Practices:
Initial approach: Begin by implementing views for your models. Consider alternative materializations only when you encounter performance challenges.
Ideal use case: Views are most effective for models that involve minimal transformations, such as column renaming or recasting.
Last updated