Wednesday, March 13, 2024

OLAP & OLTP diff

 

Online Analytical Processing (OLAP)

Online Analytical Processing (OLAP) consists of a type of software tool that is used for data analysis for business decisions. OLAP provides an environment to get insights from the database retrieved from multiple database systems at one time. 


 

OLAP Examples

Any type of Data Warehouse System is an OLAP system. The uses of the OLAP System are described below.


Spotify analyzed songs  

Netflix movie recommendation system.



Benefits of OLAP Services

OLAP services help in keeping consistency and calculation.

We can store planning, analysis, and budgeting for business   


OLAP services provide a multidimensional view of data, which helps in applying operations on data in various ways.


Drawbacks of OLAP Services

OLAP Services requires professionals to handle the data because of its complex modeling procedure. 


OLAP services are expensive to implement and maintain in cases when datasets are large.


We can perform an analysis of data only after extraction and transformation of data 


 

Online Transaction Processing (OLTP)

  OLTP administers the day-to-day transactions of an organization. 


OLTP Examples

An example considered for OLTP System is ATM Center  


ATM center is an OLTP application.

OLTP handles the ACID properties during data transactions via the application.

It’s also used for Online banking, Online airline ticket booking, sending a text message, add a book to the shopping cart.

OLTP vs OLAP

OLTP vs OLAP


Benefits of OLTP Services

OLTP services allow users to read, write and delete data  


OLTP services help in increasing users and transactions which helps in real-time access to data. 


Drawbacks of OLTP Services

OLTP has limited analysis capability  


OLTP has high maintenance costs because of frequent maintenance, backups, and recovery.


OLTP Services get hampered when  there is a hardware failure  


Difference between OLAP and OLTP

CategoryOLAP (Online Analytical Processing)OLTP (Online Transaction Processing)
DefinitionIt is well-known as an online database query management system.It is well-known as an online database modifying system.
Data sourceConsists of historical data from various Databases.Consists of only operational current data. 
Method usedIt makes use of a data warehouse.It makes use of a standard database management system (DBMS).
ApplicationIt is subject-oriented. Used for Data Mining, Analytics, Decisions making, etc.It is application-oriented. Used for business tasks.
NormalizedIn an OLAP database, tables are not normalized.In an OLTP database, tables are normalized (3NF).
Usage of dataThe data is used in planning, problem-solving, and decision-making.The data is used to perform day-to-day fundamental operations.
TaskIt provides a multi-dimensional view of different business tasks.It reveals a snapshot of present business tasks.
PurposeIt serves the purpose to extract information for analysis and decision-making.It serves the purpose to Insert, Update, and Delete information from the database.
Volume of dataA large amount of data is stored typically in TB, PBThe size of the data is relatively small as the historical data is archived in MB, and GB.
QueriesRelatively slow as the amount of data involved is large. Queries may take hours.Very Fast as the queries operate on 5% of the data.
Update The OLAP database is not often updated. As a result, data integrity is unaffected.The data integrity constraint must be maintained in an OLTP database.
Backup and RecoveryIt only needs backup from time to time as compared to OLTP.The backup and recovery process is maintained rigorously
Processing timeThe processing of complex queries can take a lengthy time.It is comparatively fast in processing because of simple and straightforward queries.
Types of usersThis data is generally managed by CEO, MD, and GM.This data is managed by clerksForex and managers.
OperationsOnly read and rarely write operations.Both read and write operations.
UpdatesWith lengthy, scheduled batch operations, data is refreshed on a regular basis.The user initiates data updates, which are brief and quick.
Nature of audienceThe process is focused on the customer.   The process is focused on the market. 
Database DesignDesign with a focus on the subject. Design that is focused on the application.
ProductivityImproves the efficiency of business analysts.Enhances the user’s productivity.
S.No.OLAPOLTP
1OLAP stands for Online analytical processing.OLTP stands for online transaction processing.
2It includes software tools that help in analyzing data mainly for business decisions.It helps in managing online database modification.
3It utilizes the data warehouse.It utilizes traditional approaches of DBMS.
4It is popular as an online database query management system.It is popular as an online database modifying system.
5OLAP employs the data warehouse.OLTP employs traditional DBMS.
6It holds old data from various Databases.It holds current operational data.
7Here the tables are not normalized.Here, the tables are normalized.
8It allows only read and hardly write operations.It allows both read and write operations.
9Here, the complex queries are involved.Here, the queries are simple.

No comments:

Post a Comment

Bank dm data model diagram and sql

  -- MySQL Script generated by MySQL Workbench -- Thu May  8 12:17:48 2025 -- Model: New Model    Version: 1.0 -- MySQL Workbench Forward En...