Table

Learn how to create table data models.

Introduction to tables

Unlike views, tables actually store the data. Therefore, tables come with one major benefit: querying them is much faster than querying views! For that reason, it’s recommended to use tables for models that will be directly connected to BI tools, such as dashboards. The major downside of tables is that, unlike views, they’re not updated by definition. They need to be refreshed, by running dbt run at a defined frequency. Like views, tables can be defined in a config block:

Get hands-on with 1400+ tech skills courses.