open atlas
↑ Back to track
Data Engineering DATA · 01 · 08

OLTP vs OLAP: free-recall review

Free-recall prompts across the OLTP vs OLAP unit. Answer each in your own words first, then reveal the model answer and compare.

DATA Senior ◷ 14 min
Level
FoundationsJuniorMiddleSenior

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the workload split stick.

Goal

Reconstruct the unit’s spine — why layout follows access pattern, the three column-store multipliers, why an index can’t save an aggregate, the replica outage, and the store-split fix — without looking back at the lesson.

Recall before you leave
  1. 01
    Why do OLTP and OLAP need opposite physical layouts, and what is each?
  2. 02
    Name the three multipliers that make a column store beat a row store on analytical queries, and roughly how big the combined gap is.
  3. 03
    A teammate asks why you can't just add an index to make the 90-day revenue aggregate fast on Postgres. Explain.
  4. 04
    Why is running the analytics dashboard on the prod read replica an outage waiting to happen, and what's the correct architecture?
  5. 05
    Why does the OLTP schema stay normalized while the OLAP target is denormalized, and why is that not a contradiction?
  6. 06
    What is HTAP, and why doesn't it eliminate the need to think about the OLTP/OLAP split?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: access pattern dictates layout (row store for point writes, column store for scans); column stores win by pruning, 5–10× compression, and vectorization stacking into a 10×–1000× gap no index can close; OLTP normalizes while OLAP denormalizes because each matches its workload; analytics on the prod replica is an outage because one scan evicts the buffer cache, contends for I/O, and drives lag; and the fix is a separate columnar store fed by CDC/ETL, with HTAP managing — never abolishing — the contention.

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.