MediumScenariodbt and dimensional modelling
A dbt model that rebuilds a 3 TB fact table nightly takes 4 hours. How do you cut it?
What a good answer covers
Convert to an incremental model with a reliable unique key and updated-at filter, handle late arrivals with a lookback window, partition and cluster on the filter column, and schedule periodic full refreshes to correct drift.
PreviousWhen would you choose Dagster or Prefect over Airflow?Next What are dbt tests and which would you put on every model?
More on dbt and dimensional modelling
Flashcards for this topic- MediumWhat are dbt tests and which would you put on every model?
- HardTwo teams define revenue differently in their dbt models and dashboards disagree. How do you resolve it?
- MediumWhat is a slowly changing dimension type 2 and how does dbt snapshot support it?
- MediumCustomer address changes and an analyst needs the address at the time of each order. How do you model it?