As asked
Explain the difference between an OLTP and an OLAP system. Why should BI workloads generally not run directly against OLTP databases?
Sample answer outline
OLTP is optimized for high-frequency, low-latency reads and writes on individual rows (row-store). OLAP is optimized for bulk analytical reads across many rows, typically using columnar storage and compression. Running BI queries on OLTP databases adds read load that competes with transactional writes, can lock rows, does not benefit from columnar compression, and lacks the pre-aggregated dimensional model. Columnar warehouses (Snowflake, BigQuery, Redshift) compress and prune columns not in the query, making analytical queries orders of magnitude faster.
Expect these follow-ups
- What is a columnar storage format and why does it help BI queries?
- When might you query an OLTP database directly for BI (give a legitimate use case)?