Materialization
Materialization | Description | Pros | Cons |
---|---|---|---|
View | Model is rebuilt as a view on each run |
|
|
Table | Model is rebuilt as a table on each run |
|
|
Incremental | Allows insertion or update of records into a table since the last run |
|
|
Ephemeral | Not built into the database; code is interpolated into dependent models as a common table expression (CTE) |
|
|
🔑 Golden Rule of Materializations Start with models as views, when they take too long to query, make them tables, when the tables take too long to build, make them incremental.