SQLIntermediate#architecture

OLTP vs OLAP?

OLTP systems handle many small concurrent transactions on normalized schemas (banking, e-commerce checkout). OLAP systems run large aggregate scans on denormalized star schemas for reporting.

Example
OLTP: INSERT INTO orders ... (thousands per second)
OLAP: SELECT region, SUM(total) FROM fact_sales GROUP BY region;

Related Questions

1
SQLIntermediate#security

What is SQL injection and how do you prevent it?

Open
2
SQLAdvanced#aggregates

What is GROUP BY with ROLLUP?

Open
3
SQLIntermediate#queries#performance

How do you paginate results efficiently?

Open