Data Warehouse
  1. Database Strategy/

Data Warehouse

A data warehouse is not a database with bigger tables.
It is a different way of thinking about data — oriented towards analysis, history, decisions.

The difference between a DWH that works and one that becomes a problem almost always lies in the model. Fact tables with the wrong granularity, poorly designed dimensions, hierarchies that cannot support aggregation queries. Problems that are invisible during development but explode when the business asks for reports the model cannot deliver.

In this section I share real cases of data warehouse design and restructuring: dimensional modeling, balanced hierarchies, slowly changing dimensions, loading strategies. Not Kimball textbook theory, but solutions applied in production on systems that serve real business decisions.

Because a data warehouse is not built to contain data.
It is built to answer questions.

SCD Type 2: the history the business didn't know it needed

A sales director asks how many customers were in the North region last June. The DWH can't answer because every update overwrites previous data. How I implemented an SCD Type 2 with surrogate keys and validity dates to give the business back its historical memory.

·13 mins