Skip to content

Data warehouse

Also called: data warehouses, data warehousing, enterprise data warehouse

Published:

Why is a data warehouse a separate system?

AWS defines a data warehouse as a central repository of information that can be analysed to make more informed decisions [1]. Data flows in from transactional systems, relational databases and other sources, usually on a regular schedule [1]. The split is about workload: an ordinary database records things like the details of a single sale, while a warehouse is built for reading large volumes of data to find relationships and trends [1]. Analysts reach it through BI tools and SQL clients [1].

How does data get into it?

A warehouse needs data organised in tables, and on ingestion the data lands in tables defined by the schema [1]. So the data is reshaped on the way in. In ETL, data is extracted from its sources, transformed by a separate engine according to business rules (filtered, joined, cleaned, deduplicated) and then loaded [2]. In ELT, the target system does the transforming with its own compute; Microsoft suggests ELT when the target is a modern warehouse or lakehouse with elastic scaling [2].

How does it differ from a data lake?

In Microsoft's comparison, a warehouse holds structured, curated data in relational schemas and applies structure as data is written (schema-on-write). That buys low-latency analytical queries, at a higher cost at large scale [3]. A data lake keeps raw data and applies structure when it is read [3].

Picture a retailer that loads till and web-shop records into its warehouse every night. Next morning an analyst runs "sales by region over the last four quarters" against the warehouse, without putting load on the transactional database the tills depend on.

Frequently asked questions

Is a data warehouse just a big database?

Not quite. A transactional database is built to write individual records; a warehouse is built to read and analyse large volumes of them.

What is the difference between ETL and ELT?

Where the transformation happens. ETL transforms data in a separate engine before loading; ELT loads first and transforms inside the target system.

Sources

  1. What is a Data Warehouse? — AWS
  2. Extract, transform, load (ETL) — Microsoft Learn
  3. What Is a Data Lake? — Microsoft Learn