Differentiate OLAP From OLTP 1.1. in Terms of Definition
Differentiate OLAP From OLTP 1.1. in Terms of Definition
Differentiate OLAP From OLTP 1.1. in Terms of Definition
OLTP
Online Transaction Processing
A system that manages transaction-oriented application on the internet in a 3-
tier architecture;
Manages day to day transaction of an organization;
And is being used by end users such as DBA, DB professional;
Used for data processing
OLTP
In online banking, customers used online services for checking account
balances and directing fund balances;
For purchasing a book online, it is used for adding a book to the shopping
card;
In Call Center, staff uses OLTP to view and update customer's details;
To book an airline ticket and for sending a text message;
In ATM Center, it is used for money withdrawals, transfers, deposits, and
inquiries;
To make order entries in hotel and medical industry.
1.3. In terms of parameters
2.3.1. Motive to use
OLAP
OLAP Systems provide consolidated view of historical data of an
enterprise for reporting, planning, and decision-making;
Types of Queries – large and complex queries are used for making
decisions in this aggregation of tables across multiple database which
is frequently required;
Forms of Query – transactions are not required to be recorded hence
select command is used for fetching the data for analysis purposes;
Types of Users – are mostly knowledgeable workers, business
analysts, c-suite, and managers, for running complex queries for
running complex queries for making the analysis.
OLTP
OLTP systems are used to manage day-to-day fundamental operations;
Types of Queries – simple and standard queries are used, which
returns only a few records;
Forms of Query – uses insert, delete, and update statement for the
same;
Types of Users – mostly used by the employees on the front line that
has end users like clerks, and cashiers, DBA, in order to record and
review the transactions.
1.3.2. Normalization
OLAP
Data is denormalized to improve query performance when aggregation
must be performed;
Data Storage – requires significantly large space as it is used to store
huge amount of historical data;
Back-up and Recovery – backups are rarely needed because it is built
to persist data;
Design Part – design changes according to the reporting subjects like
sales inventory, marketing, and so on. The design here changes
according to the reporting subject only. Snowflake Model Based
Design.
OLTP
Data is stored in third normal form (3NF), in order to facilitate simple
queries;
Data Storage – contains data from multiple sources and requires
storage of aggregate structures and numerous indexes in order to
optimize query performance but relatively smaller space is required as
it is based on current data only;
Back-up and Recovery – data is backed up regularly without fail
because it stores all functional data for the business only;
Design Part – design changes as per the industrial requirements. ER
Model Based Design.
OLTP
Advantages of Using OLAP
Used to manage day-to-day transactions of an organization;
Queries used in this are simpler and short;
Allows indexed access to data;
Multiple users can use OLTP at one time;
Frequent queries and updates;
Faster response time compared to OLAP.
Disadvantages of Using OLAP
Online transactions get affected, if hardware failures occur in OLTP systems;
Multiple users to change and access the same data, so, creates unprecedented
situation;
Costly systems designs and maintenance for making OLTP concurrency;
In Online Banking, online transaction systems impose processing costs on the
buyers and sellers.
OLAP is historical multi-dimensional data retrieval system that is used to retrieve the
data for analysis can be helpful for decision-making, whereas, OLTP is an online data
modification system. So, OLAP system creates a single platform for all types of business
analysis needs such as planning, budgeting, analysis, and forecasting. OLTP systems are
used for day-to-day transaction. OLAP is characterized by a large volume of data,
whereas, OLTP is characterized by the large number of short online transactions. Both
works differently based on the user's requirements.
We can define OLAP in data warehouse as a computing technology that allows query
data and analyze it from different perspectives. The technology is a great solution for
business analysts who need to pre-aggregate and pre-calculate data for fast analysis.
Talking about OLAP architecture in data warehouse, it is based on a multidimensional
data structure. The data has a form of OLAP cubes, which have a star or snowflake-shape
schema. In the middle of a star (or snowflake) is a table that includes data aggregations
and reconciles various dimensions. To query the data required, OLAP usually uses MDX
language. MDX queries work with OLAP members, dimensions and hierarchies.
OLAP Functions
Features of OLAP in data warehouse are the following:
Has intuitive easy-to-use interface;
OLAP supports complex calculations;
Provides data view in multidimensional manner;
Time intelligence.