How does the schema design for an OLTP transaction database differ from an OLAP reporting/analytics data warehouse using a star schema?
Last updated
OLTP (transactional) schemas are normalized (3NF) into many narrow related tables, so frequent small writes stay fast and consistent without anomalies.
OLAP star schemas put a central fact table of measures (e.g. sales amount) among denormalized dimension tables (date, product, customer), so aggregations need fewer joins.
Core tradeoff: normalization favors write integrity and concurrency. Denormalization trades storage and duplication for read speed on batch-loaded data.
- https://www.geeksforgeeks.org/dbms/online-transaction-processing-oltp-and-online-analytic-processing-olap/
- https://medium.com/data-science-collective/oltp-vs-olap-a-deep-dive-into-transactional-and-analytical-processing-d14cbb069a78
- https://learn.microsoft.com/en-us/azure/architecture/data-guide/relational-data/online-analytical-processing
- https://aws.amazon.com/what-is/olap/
- https://www.geeksforgeeks.org/dbms/star-schema-in-data-warehouse-modeling/
- https://aws.amazon.com/what-is/columnar-database/
- https://www.geeksforgeeks.org/dbms/difference-between-star-schema-and-snowflake-schema/
- https://learn.microsoft.com/en-us/azure/architecture/data-guide/relational-data/online-transaction-processing