Data Modeling & Warehousing Fundamentals
Back to Foundations: Why Models Matter

Why Data Modeling Exists — OLTP vs OLAP

One database can't serve both transactions and analytics well. This is why data warehouses exist. FIND_VIDEO: search 'OLTP vs OLAP data warehouse' — recommended channel: Kahan Data Solutions / Seattle Data Guy. Aim for 11 min or under.

5 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Data Warehouse Justification — The instructor outlines why analytical reporting requirements inevitably clash with traditional database capabilities.
  2. OLTP Fundamentals — The instructor explains transactional systems, defining their role in processing high-concurrency writes and operational updates.
  3. OLAP Fundamentals — The instructor defines analytical systems and demonstrates how columnar architectures calculate aggregate metrics across large datasets.
  4. Contention and Table Locking — The instructor demonstrates how heavy analytical queries lock database resources and disrupt mission-critical customer transactions.
PDF notes

Frequently asked questions

Why can't a single modern database handle both OLTP and OLAP workloads simultaneously?

OLTP engines optimize for low-latency row mutations and locking, whereas OLAP engines optimize for scanning wide historical columns. Running both concurrently creates resource starvation and lock contention.

How does an analytical query block an operational transaction like an ATM withdrawal?

An unoptimized analytical query scanning entire account tables consumes memory and acquires locks, forcing real-time withdrawal transactions to wait indefinitely until the scan completes.

When does a team need to introduce a data warehouse instead of just adding database read replicas?

Read replicas help offload read queries, but when analytical demands require cross-system data integration, deep historical analysis, or columnar aggregations, a dedicated OLAP warehouse is required.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.