PDF guide · 9 pages
dbt Project Structure Guide
v1.0 · 21 KB
dbtbeginner
dbt Project Structure Guide
How to lay out a dbt project that scales past 200 models: staging/intermediate/marts layers, naming, tests, and the refactors to do early.
What's inside
- 01The three-layer layout: staging, intermediate, marts
- 02Naming: stg_, int_, fct_, dim_ and when to break the rules
- 03Sources, freshness and staging 1:1 rule
- 04Tests that catch real regressions
- 05Snapshots and seeds placement
- 06Refactors to do before model 50, not after model 500
Written for teams adopting dbt on Databricks or Synapse — the structure applies to any warehouse.
Goes well with
Article2 min read
Slowly changing dimensions with dbt snapshots
dbt snapshots give you SCD Type 2 history in about ten lines of config — if you pick the right strategy and understand what they can't do.
Article8 min read
Kimball vs Data Vault vs One Big Table: How to Choose
Three modeling styles, three different problems they solve. A decision framework based on source count, audit needs, team size and consumers, plus the hybrid most lakehouses end up with.
Article8 min read
Data Modeling Interview Questions: 20 Design Problems with Answers
Twenty scenario-based data modeling problems asked in data engineer and analytics engineer interviews, with what the interviewer is checking and a strong answer for each.