Cianplan

Level 2: Data · L2.1 Data models, SQL vs NoSQL, storage engines & indexing

OLTP vs OLAP and column stores

Explain why analytics uses column-oriented storage.

12 min · Pro

What you take away

  • OLTP touches few rows and many of their columns; OLAP touches few columns across enormous numbers of rows.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. Two workloads, two layouts
  4. Why a read replica is not the answer
  5. Check your understanding