Data warehouses
What Are Data Warehouses?
Data warehouses are centralized repositories that consolidate data from multiple operational sources and organize it for analytical query processing and reporting. Unlike transactional databases, which are optimized for short read-write operations against a small number of rows, data warehouses are designed to execute complex, aggregating queries across billions of records, often spanning years of historical data. The term was popularized by Bill Inmon in the late 1980s, who defined a data warehouse as subject-oriented, integrated, time-variant, and non-volatile: subject-oriented because it is organized around business entities such as customers or products rather than operational processes; time-variant because historical records are retained and versioned; non-volatile because once data is loaded it is not modified in place.
The discipline draws on database theory, statistics, and information architecture. It sits at the center of business intelligence stacks, providing the queryable foundation from which reporting tools, dashboards, and machine learning pipelines draw their data. The rise of NoSQL databases has not displaced warehousing but has added alternative paradigms for unstructured data; modern architectures often ingest data from both relational and NoSQL sources, landing it in a warehouse or a closely related construct called a data lake.
Data Modeling and Schema Design
The internal organization of a data warehouse is governed by a dimensional model, a design approach developed by Ralph Kimball in the 1990s as a practical alternative to fully normalized relational schemas. The central construct in a dimensional model is the fact table, which records measurable events (a sale, a web page visit, a sensor reading) with foreign keys pointing to surrounding dimension tables (customer, product, time, location). This arrangement, called a star schema, allows analytical queries to filter and aggregate facts using simple joins to dimension tables, minimizing the depth of joins compared to normalized schemas. A snowflake schema extends the star by normalizing dimension tables into sub-dimensions, trading query simplicity for reduced storage. Column-oriented storage layouts, used by warehouse engines such as Amazon Redshift, Google BigQuery, and Snowflake, complement dimensional modeling by storing each column contiguously on disk, enabling high-speed scans of individual attributes without reading irrelevant columns.
ETL and Data Integration
Data reaches a warehouse through extract, transform, and load (ETL) pipelines or the newer extract, load, and transform (ELT) variant. ETL extracts records from source systems (operational databases, CRM platforms, log files, external APIs), applies transformations including deduplication, type casting, business rule application, and surrogate key assignment, and loads the cleaned records into the warehouse. ELT instead loads raw data directly into the warehouse and performs transformation inside it using SQL, which is practical because modern cloud warehouses offer elastic compute capacity for large in-database transformations. Maintaining data quality during integration requires tracking row counts, null rates, referential integrity, and schema drift across each pipeline run. The IBM overview of data warehousing describes how ETL, data quality, and warehouse management functions interconnect in enterprise deployments.
OLAP and Analytical Query Processing
Online Analytical Processing (OLAP) describes the class of queries that data warehouses are built to serve: aggregations, pivots, drill-downs, and slice-and-dice operations across multiple dimensions. A drill-down navigates from a coarser granularity (annual revenue by region) to a finer one (monthly revenue by city and product line). Pre-computed aggregations called materialized views or OLAP cubes accelerate these operations by storing results of frequent groupings so that queries can retrieve a pre-aggregated total rather than re-scanning the underlying fact table. Modern columnar warehouse engines achieve high throughput on OLAP queries through vectorized execution, which processes a batch of values with a single instruction rather than looping row by row, and through late materialization, which defers column decoding until after predicates are applied. Amazon Web Services explains OLAP architecture and its relationship to data warehousing in its public documentation.
Applications
Data warehouses have applications in a wide range of disciplines, including:
- Business intelligence dashboards for executive reporting and KPI monitoring
- Financial consolidation and regulatory compliance reporting
- Customer analytics for segmentation, churn prediction, and campaign attribution
- Healthcare outcomes analysis aggregating clinical and claims data
- Supply chain performance monitoring across global logistics networks
- Scientific research data repositories for longitudinal study analysis