OLTP Vs OLAP
OLTP Vs OLAP
OLAP
We can divide IT systems into transactional (OLTP) and analytical (OLAP). In general
we can assume that OLTP systems provide source data to data warehouses, whereas
OLAP systems help to analyze it.
The following table summarizes the major differences between OLTP and OLAP system
design.
OLTP System
OLAP System
Online Transaction
Online Analytical Processing
Processing
(Data Warehouse)
(Operational System)
Operational data; OLTPs are the original Consolidation data; OLAP data comes from the
Source of data
source of the data. various OLTP Databases
To control and run fundamental business To help with planning, problem solving, and
Purpose of data
tasks decision support
Reveals a snapshot of ongoing business Multi-dimensional views of various kinds of
What the data
processes business activities
Inserts and Short and fast inserts and updates initiated
Periodic long-running batch jobs refresh the data
Updates by end users
Relatively standardized and simple queries
Queries Often complex queries involving aggregations
Returning relatively few records
Depends on the amount of data involved; batch
Processing data refreshes and complex queries may take
Typically very fast
Speed many hours; query speed can be improved by
creating indexes
Larger due to the existence of aggregation
Space Can be relatively small if historical data is
structures and history data; requires more
Requirements archived
indexes than OLTP
Database Typically de-normalized with fewer tables; use of
Highly normalized with many tables
Design star and/or snowflake schemas
Backup religiously; operational data is critical
Instead of regular backups, some environments
Backup and to run the business, data loss is likely to
may consider simply reloading the OLTP data as
Recovery entail significant monetary loss and legal
a recovery method
liability