Data and Databases

What a Data Warehouse Is

A plain explanation of data warehouses: central stores built for reporting across many sources, how data gets loaded, and how they differ from everyday databases.

On this page
  1. The problem a warehouse solves
  2. Operational databases versus warehouses
  3. How data gets in: ETL and ELT
  4. How the data is organized
  5. What warehouses are used for
  6. Strengths and limits
  7. Where warehouses run
  8. Warehouses and data lakes
  9. Data marts
  10. The takeaway

The problem a warehouse solves

An organization rarely keeps its information in one place. Sales may be in one system, customer support tickets in another, website activity in a third and finance in a fourth. Each was built for its own job. If a manager asks, “Which customers who contacted support last quarter also bought more this year?”, the answer sits across several systems that store things differently.

A data warehouse is a central repository that collects data from many sources, organizes it consistently and keeps it in a form designed for reporting and analysis. Think of it as a library where books from many collections have been cataloged under one system, instead of a set of separate rooms.

Operational databases versus warehouses

The database behind an app or a shop checkout is built for operations: recording a single order, updating an address, looking up one account, thousands of small tasks happening quickly. This style is often called OLTP, short for online transaction processing. The basics are covered in the introduction to how databases store information.

A warehouse is built for analysis: reading large amounts of data to answer broad questions. This style is often called OLAP, for online analytical processing. Typical questions are totals by region, trends by month, or comparisons between groups.

Operational database Data warehouse
Main job Run daily activity Answer analytical questions
Typical request Read or change a few records Scan and summarize many records
Data Current state Current plus history
Design focus Fast, safe small updates Fast large reads

Running heavy reports directly on the live database can slow down the app that customers are using. Separating the two avoids that.

How data gets in: ETL and ELT

Data usually flows into a warehouse through a pipeline:

  1. Extract the data from source systems.
  2. Transform it: fix formats, remove duplicates, align names and units, and apply business rules. This is where data cleaning does much of its work.
  3. Load it into the warehouse.

This pattern is called ETL. A variant, ELT, loads the raw data first and transforms it inside the warehouse, which is common when the warehouse has plenty of processing power. Loads usually run on a schedule, such as nightly, or in smaller frequent batches, so warehouse figures may lag slightly behind the live systems.

How the data is organized

Warehouses often arrange data to make questions easy to ask. One common design is the star schema:

  • Fact tables hold measurable events, such as each sale with its amount and quantity.
  • Dimension tables describe the context: which product, which customer, which date, which store.

In a hypothetical example, a fact table records “sold 3 units of product 12 on date 20260314 at store 5,” and dimension tables say what product 12 is, what store 5 is and where it is located. A report can then total sales by product category and month without untangling the original systems.

Another habit is keeping history. Operational systems usually store only the latest address, but a warehouse may keep earlier versions, so a report on last year’s sales can reflect where customers lived at the time.

What warehouses are used for

  • Business reports and dashboards, including data analytics for decision-making
  • Finance and compliance reporting that needs consistent, auditable figures
  • Feeding charts and tools for data visualization
  • Preparing data for statistical work and machine learning basics, where analysts need a consistent, documented source of training data
  • Measuring performance over time, such as in sports analytics or retail

Strengths and limits

Strengths. A warehouse gives people one agreed version of the numbers, which avoids arguments over whose spreadsheet is right. It handles large queries well and keeps history.

Limits.

  • Building and maintaining the pipelines takes ongoing effort, and a broken load can silently produce stale or incomplete reports.
  • Data must fit the designed structure before or while it is loaded, which suits tidy records better than free text, images or audio. The distinction is discussed in the article on structured and unstructured data.
  • Definitions require agreement. If sales and finance define “active customer” differently, the warehouse must pick one, and that takes discussion.
  • Data quality problems at the source still flow through. A warehouse centralizes data, but it does not make wrong data right.
  • Sensitive information needs controls. A central store holding data from many systems is an attractive target, so access rules and monitoring are important, and a breach could expose a great deal at once. See the discussion of data breaches for what can follow.

Where warehouses run

Traditionally, warehouses ran on dedicated servers in a company’s own facilities. Today, many are services offered through cloud infrastructure, where storage and computing can be adjusted as needs change and billed by use. Details vary widely between providers and setups, and the cost depends on how much data is stored and how often it is queried.

Warehouses and data lakes

A warehouse stores prepared, structured data. A neighboring idea, data lakes, stores raw data of any format before anyone decides how to use it. Some organizations use both, with raw material landing in a lake and curated parts moving into a warehouse. Some products combine features of the two.

Data marts

A data mart is a smaller, focused slice of a warehouse prepared for one team, such as marketing or finance. It gives that group a simpler set of tables and can help with performance and access control.

The takeaway

A data warehouse is not a particular product. It is a way of organizing data: gather from many sources, clean and align, store with history, and optimize for questions. Whether an organization needs one depends on how many sources it has, how often people need cross-system answers, and how much consistency matters.

The complete guide to data and databases

What Databases Are and How They Store Information
Read the guide

Keep exploring

Guides from other topics

All topics →