Ch. 3
Transaction Processing or Analytics?
OLTP and OLAP systems optimize for opposite access patterns — and mixing them hurts both.
Transaction processing (OLTP) systems power live applications: checkout, account updates, messaging. Analytics (OLAP) systems answer business questions over months of history. Their hardware, schema, and storage layouts diverge completely.
Data Warehousing
A data warehouse ingests copies of production data via ETL, denormalizes into star schemas (fact tables surrounded by dimension tables), and optimizes for scan-heavy aggregation — not millisecond point lookups.
OLTPOLAPPostgreSQLSnowflakeBigQuerydata warehouseETL