---
title: "How we model our data warehouse"
description: "incident.io structures its dbt warehouse in three layers: staging models that rename, cast and lightly combine source tables, intermediate models that handle reusable joins and expensive calculations, and marts split into internal dim/fct tables and customer-facing insights models."
url: "https://swe.quest/articles/how-we-model-our-data-warehouse-37549bad3cebc52b"
canonical: "https://incident.io/blog/how-we-model-our-data-warehouse"
source: "incident.io"
published: "2024-11-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["analytics","data-pipelines","sql"]
---

# How we model our data warehouse

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2024-11-08, 10 min read, Case study. Original: [https://incident.io/blog/how-we-model-our-data-warehouse](https://incident.io/blog/how-we-model-our-data-warehouse)

## Summary

incident.io structures its dbt warehouse in three layers: staging models that rename, cast and lightly combine source tables, intermediate models that handle reusable joins and expensive calculations, and marts split into internal dim/fct tables and customer-facing insights models. The insights models are isolated in their own schema for the embedded tool Explo and never depend on internal marts. In the BI tool Omni, pre-joined marts datasets answer most questions, power users join staging tables ad hoc, and intermediate tables are hidden. Deliberately not saving staging joins or custom columns in the BI tool creates demand-driven signals for what to promote into marts, which avoids speculative over-modeling.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- dbt basics
- dimensional modeling
- BI tools

## Keywords

dbt, Omni, Explo, Salesforce, Stripe

## Related posts

- [Updating our data stack](https://swe.quest/articles/updating-our-data-stack-8fc5fea19caac0a4.md): incident.io · 2022-08-24 · Medium · 12 min read · Data pipelines, Analytics & OLAP, CI/CD, SQL
  incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people.
- [A modern data stack for startups](https://swe.quest/articles/a-modern-data-stack-for-startups-20644b674a9fc96e.md): incident.io · 2022-01-25 · Medium · 15 min read · Data pipelines, Analytics & OLAP, PostgreSQL
  A small startup data stack built in two weeks: Fivetran (plus Stitch for connectors Fivetran lacks, like the Close CRM) extracts data into BigQuery, dbt transforms it, and Metabase lets non-engineers explore it without SQL.
- [Building a cost-effective analytics stack with Modal, dlt, and dbt](https://swe.quest/articles/building-a-cost-effective-analytics-stack-with-modal-dlt-and-dbt-7ea1b0034997749a.md): Modal · 2024-09-10 · Medium · 11 min read · Data pipelines, Analytics & OLAP, Serverless, CI/CD, Cost optimization
  Modal runs its whole analytics stack on Modal: dlt loads data from a Postgres read replica into Snowflake, dbt transforms it, and GitHub Actions handles CI/CD. dlt replaced hand-written psycopg2 code and removes manual schema definitions, Snowflake DDL and error-prone incremental logic.
- [Data stack 2024](https://swe.quest/articles/data-stack-2024-acc7f40c0d3042d9.md): incident.io · 2024-08-06 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Developer productivity, Incidents & postmortems
  incident.io's 2024 data stack runs Fivetran and Segment into BigQuery, dbt (run via Docker on CircleCI) for transforms, and Hightouch for reverse ETL.
- [My first 3 months at incident.io](https://swe.quest/articles/my-first-3-months-at-incident-io-57d9570909595399.md): incident.io · 2024-08-02 · Medium · 5 min read · Data pipelines, Analytics & OLAP, Cost optimization, CI/CD
  A new Data Engineer's first quarter rebuilding a Fivetran, BigQuery, dbt, CircleCI and Omni data stack.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
