Do you know the difference between OLTP and OLAP? First of all, what are OLTP and OLAP? OLTP and OLAP are the IT systems. Both of the systems are entirely different. OLTP is transactional system while OLAP is an analytical system. The source data is provided to data warehouse by OLTP and is analysed by OLAP. Before moving to the difference between OLTP and OLAP, let us first clear out the basics.
What is OLTP?
OLTP stands for On-Line Transaction Processing and is a data modelling approach typically used to facilitate and manage usual business applications. Most of the applications you see and use are OLTP based and it is one of the differences between OLTP and OLAP.
We can’t live without OLTP, it is the main source of all business that is running day by day.
OLTP deals with lots of short transactions on-line such as INSERT, UPDATE, DELETE. OLTP focuses on very fast query processing, also the data is updated regularly.
What is OLAP?
OLAP stands for On-Line Analytic Processing and is an approach to answering multi-dimensional queries. OLAP was conceived for Management Information Systems and Decision Support Systems but it is still used very less which hints us about the difference between OLTP and OLAP.
OLAP is analytical system and deals with historical data with a low volume of transactions. Queries are quite complex here. Its processing speed depends upon the amount of data involved. Response time is an effective measure for all OLAP systems.
We are done with the basics so let’s move on the difference between OLTP and OLAP.
Difference between OLTP and OLAP
OLTP stands for On-line Transaction Processing whereas OLAP stands for On-line Analytical Processing.
OLTP provides the data to the data warehouse and then OLAP analyses this data.
OLTP deals with operational data whereas OLAP deals with historical data.
In OLTP, queries are simple whereas in OLAP queries are relatively complex.
The processing speed of OLTP is very fast whereas in OLAP processing speed depends upon the amount of data.
OLTP requires less space for data as compared to OLAP.
Database design of OLAP is highly normalised with many tables while in OLAP the database design is de-normalized with few tables.
In OLTP database transactions are short whereas in OLAP database transaction are long.
IN OLTP volume transactions are high whereas in OLAP volume transaction are low.
In OLAP transaction recovery is necessary whereas in OLTP transaction recovery is not necessary.
OLTP focuses on updating data whereas OLTP focuses on reporting and retrieval of data.
Here are some video references that might help you a bit: