Lesson · 11 pages · about 9 min
Data warehouse
Big questions over history do not belong on the database that takes the orders. Follow one night’s orders into a warehouse: staged, checked, modelled as a star schema, and asked “revenue by date”.
- What it is
- A data warehouse is a separate database built for big questions over lots of history, such as “revenue by date for the whole year”.
- What it is for
- The shop’s live database is built for one order at a time. Heavy reports slow the checkout down, and live rows change or get archived, so history is lost.
- Use it when
- As soon as people need reports over many days of data, from one or more sources, that must agree with each other.
- Not when
- For “what is the status of this one order now?”: that is the live database’s job, and the warehouse is usually hours behind.
Words you’ll learn
- Database
- Row
- Data warehouse
- Object storage
- ETL
- ELT
- Staging table
- Waiting room
- Retry
- Data pipeline