← All case files
// case file
CASE / 05
Multi-Tenant Warehouse
SNOSQLSCD
TENANT_ATENANT_BTENANT_CSHARED · CONFORMED DIMENSIONSCASE 05MULTI-TENANT MODEL
● Shippedcase file · 05 / 16
Case
#05
Where
Yosi Health
Categories
Snowflake · Modeling
Read
~2 min
/05

Multi-Tenant Data Warehouse Architecture

SnowflakeSQLSCD II
Fact/dimension models, time-aware joins, layered staging→intermediate→mart. Serves 250 customers, internal and external, and cut delivery time by 8 hours.
+
The Problem

Multiple customers, shared infrastructure, divergent needs — and a warehouse that had grown organically into a tangle of one-off views. Cross-tenant benchmarking was unsafe, performance was inconsistent, and onboarding a new customer required custom code rather than configuration.

Adoption
Serves250 customers, internal teams and external customers
BeforeA tangle of one-off views, unsafe cross-tenant benchmarking and inconsistent performance
NowLayered staging → intermediate → mart models with tenant-aware governance
How it's built

Redesigned as a layered architecture: staging mirrors source systems, intermediate handles business logic and conformed dimensions, marts expose tenant-isolated semantic models. SCD Type 2 captures historical attribution. Tenant ID propagates through every fact for safe row-level isolation.

Technical Details
  • Three-layer architecture with clear contracts between layers
  • SCD Type 2 with effective_from / effective_to / is_current
  • Conformed dimensions shared across tenants
  • Row-access policies for tenant isolation
  • Foundation for 60+ multi-tenant dashboards
250
Customers served
8 hrs
Delivery time cut
60+
Dashboards on top
Source systemsmultiple customersStagingmirrors sourcesIntermediateconformed dims, SCD 2Martstenant-isolated modelsDashboards60+ on toptenant_id on every fact · row-access policies
Simplified architecture. Illustrative only: no employer data or confidential details are shown.