Skip to content
Glossary · System design

Data warehouse

Definition

A database built for analysis and reporting, where cleaned data from many systems is kept together in one place.

Last updated

What it is.

Your app's database is built for many small reads and writes. A warehouse is built for large queries over lots of rows, such as revenue by month by region. Data from the app, payments, CRM and marketing tools is copied in, usually by an ETL or ELT pipeline, and shaped into tables that are easy to query.

Warehouses usually store data by column, which makes big scans and totals fast. Analysts and BI tools query the warehouse, not the live app.

Why it matters

Running heavy reports on the production database slows the app down for users. A warehouse separates the two and gives one trusted place for numbers, so finance, product and sales stop arguing over whose spreadsheet is right.

In a product build

We send product events and database changes to the warehouse through a pipeline, define key metrics once in shared models, and leave personal data out or masked where the analysis does not need it. Access to the warehouse follows the same role rules as the app.

Watch out

Common mistakes.

  1. 01

    Copying raw data in with no shared definitions, so every report counts differently.

  2. 02

    Putting personal data in the warehouse with weaker access controls than the app.

  3. 03

    Using the warehouse to power user-facing features that need fast, fresh reads.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab