Download Online Analytical Processing: Understanding OLAP Systems and Their Benefits and more Lecture notes Cybercrime, Cybersecurity and Data Privacy in PDF only on Docsity!
INTRODUCTION TO OLAP
OLTP vs OLAP: What's the Difference?
• What is OLAP?
• Online Analytical Processing, a category of
software tools which provide analysis of data
for business decisions. OLAP systems allow
users to analyze database information from
multiple database systems at one time.
• The primary objective is data analysis and
not data processing.
OLTP vs OLAP: What's the Difference?
- What is OLTP?
- Online transaction processing shortly known
as OLTP supports transaction-oriented
applications in a 3-tier architecture. OLTP
administers day to day transaction of an
organization.
- The primary objective is data processing and
not data analysis
Example of OLAP
- Any Datawarehouse system is an OLAP system.
Uses of OLAP are as follows
- A company might compare their mobile phone
sales in September with sales in October, then
compare those results with the with another
location which may be stored in a sperate
database.
- Amazon analyzes purchases by its customers to
come up with a personalized homepage with
products which likely interest to their customer.
Benefits of using OLAP services
- OLAP creates a single platform for all type of
business analytical needs which includes
planning, budgeting, forecasting, and
analysis.
- The main benefit of OLAP is the consistency
of information and calculations.
- Easily apply security restrictions on users and
objects to comply with regulations and
protect sensitive data.
Benefits of OLTP method
- It administers daily transactions of an organization.
- OLTP widens the customer base of an organization
by simplifying individual processes.
- Drawbacks of OLAP service
- Implementation and maintenance are dependent
on IT professional because the traditional OLAP
tools require a complicated modeling procedure.
- OLAP tools need cooperation between people of
various departments to be effective which might
always be not possible.
Drawbacks of OLTP method
- If OLTP system faces hardware failures, then online transactions get severely affected.
- OLTP systems allow multiple users to access and change the same data at the same time which many times created unprecedented situation.
Difference between OLTP and OLAP
Parameters OLTP OLAP
Process It is an online transactional system. It manages database modification.
OLAP is an online analysis and data retrieving process.
Characteristic It is characterized by large numbers of short online transactions.
It is characterized by a large volume of data.
Functionality OLTP is an online database modifying system.
OLAP is an online database query management system.
Operation Allow read/write operations.
Only read and rarely write.
Audience It is a market orientated process.
It is a customer orientated process.
Query Type
Queries in this process are standardized and simple.
Complex queries involving aggregations.
Back-up Complete backup of the data combined with incremental backups.
OLAP only need a backup from time to time. Backup is not important compared to OLTP
Design DB design is application oriented. Example: Database design changes with industry like Retail, Airline, Banking, etc.
DB design is subject oriented. Example: Database design changes with subjects like sales, marketing, purchasing, etc.
User type It is used by Data critical users like clerk, DBA & Data Base professionals.
Used by Data knowledge users like workers, managers, and CEO.
Purpose Designed for real time business operations.
Designed for analysis of business measures by category and attributes.
Performance metric
Transaction throughput is the performance metric
Query throughput is the performance metric.
Number of users
This kind of Database users allows thousands of users.
This kind of Database allows only hundreds of users.
Productivi ty
It helps to Increase user's self-service and productivity
Help to Increase productivity of the business analysts.
Challenge Data Warehouses historically have been a development project which may prove costly to build.
An OLAP cube is not an open SQL server data warehouse. Therefore, technical knowledge and experience is essential to manage the OLAP server.
Process It provides fast result for daily used data.
It ensures that response to the query is quicker consistently.
Characteri stic
It is easy to create and maintain.
It lets the user create a view with the help of a spreadsheet.
Style OLTP is designed to have fast response time, low data redundancy and is normalized.
A data warehouse is created uniquely so that it can integrate different data sources for building a consolidated database
What is Online Analytical Processing?
- OLAP is a category of software that allows users to analyze information from multiple database systems at the same time. It is a technology that enables analysts to extract and view business data from different points of view. OLAP stands for Online Analytical Processing.
- Analysts frequently need to group, aggregate and join data. These operations in relational databases are resource intensive. With OLAP data can be pre-calculated and pre- aggregated, making analysis faster.
- OLAP databases are divided into one or more cubes. The cubes are designed in such a way that creating and viewing reports become easy.
Basic analytical operations of OLAP
- Four types of analytical operations in
OLAP are:
- Roll-up
- Drill-down
- Slice and dice
- Pivot (rotate)
1) Roll-up:
- Roll-up is also known as "consolidation" or
"aggregation." The Roll-up operation can be
performed in 2 ways
- Reducing dimensions
- Climbing up concept hierarchy. Concept hierarchy is
a system of grouping things based on their order or
level.
- Consider the following diagram
•In this example, cities New jersey and Lost Angles and rolled up into country USA •The sales figure of New Jersey and Los Angeles are 440 and 1560 respectively. They become 2000 after roll-up •In this aggregation process, data is location hierarchy moves up from city to the country. •In the roll-up process at least one or more dimensions need to be removed. In this example, Quater dimension is removed.
2) Drill-down
- In drill-down data is fragmented into smaller
parts. It is the opposite of the rollup process.
It can be done via
- Moving down the concept hierarchy
- Increasing a dimension
•Dimension Time is Sliced with Q1 as the filter.
•A new cube is created altogether.
Dice:
- This operation is similar to a slice. The difference in
dice is you select 2 or more dimensions that result
in the creation of a sub-cube.
4) Pivot
- In Pivot, you rotate the data axes to provide a
substitute presentation of data.
- In the following example, the pivot is based
on item types.
Type of OLAP Explanation Relational OLAP(ROLAP):
ROLAP is an extended RDBMS along with multidimensional data mapping to perform the standard relational operation.
Multidimensional OLAP (MOLAP)
MOLAP Implementes operation in multidimensional data.
Hybrid OnlineAnalytical Processing (HOLAP)
In HOLAP approach the aggregated totals are stored in a multidimensional database while the detailed data is stored in the relational database. This offers both data efficiency of the ROLAP model and the performance of the MOLAP model.
Desktop OLAP (DOLAP) In Desktop OLAP, a user downloads a part of the data from the database locally, or on their desktop and analyze it.
DOLAP is relatively cheaper to deploy as it offers very few functionalities compares to other OLAP systems. Web OLAP (WOLAP) Web OLAP which is OLAP system accessible via the web browser. WOLAP is a three-tiered architecture. It consists of three components: client, middleware, and a database server.
Mobile OLAP: Mobile OLAP helps users to access and analyze OLAP data using their mobile devices Spatial OLAP : SOLAP is created to facilitate management of both spatial and non- spatial data in a Geographic Information system (GIS)
ROLAP
- ROLAP works with data that exist in a relational
database. Facts and dimension tables are stored as
relational tables. It also allows multidimensional
analysis of data and is the fastest growing OLAP.
- Advantages of ROLAP model:
- High data efficiency. It offers high data efficiency
because query performance and access language are
optimized particularly for the multidimensional data
analysis.
- Scalability. This type of OLAP system offers scalability
for managing large volumes of data, and even when the
data is steadily increasing.
ROLAP
- Drawbacks of ROLAP model:
- Demand for higher resources: ROLAP needs high
utilization of manpower, software, and hardware
resources.
- Aggregately data limitations. ROLAP tools use SQL for
all calculation of aggregate data. However, there are no
set limits to the for handling computations.
- Slow query performance. Query performance in this
model is slow when compared with MOLAP
MOLAP
- MOLAP uses array-based multidimensional
storage engines to display multidimensional
views of data. Basically, they use an OLAP cube.
- Multidimensional OLAP (MOLAP) is a classical
OLAP that facilitates data analysis by using a
multidimensional data cube. Data is pre-
computed, pre-summarized, and stored in a
MOLAP (a major difference from ROLAP).
MOLAP Advantages
- MOLAP can manage, analyze and store considerable amounts of multidimensional data.
- Fast Query Performance due to optimized storage, indexing, and caching.
- Smaller sizes of data as compared to the relational database.
- Automated computation of higher level of aggregates data.
- Help users to analyze larger, less-defined data.
- MOLAP is easier to the user that's why It is a suitable model for inexperienced users.
- MOLAP cubes are built for fast data retrieval and are optimal for slicing and dicing operations.
- All calculations are pre-generated when the cube is created.
MOLAP Disadvantages
- One major weakness of MOLAP is that it is less scalable than ROLAP as it handles only a limited amount of data.
- The MOLAP also introduces data redundancy as it is resource intensive
- MOLAP Solutions may be lengthy, particularly on large data volumes.
- MOLAP products may face issues while updating and querying models when dimensions are more than ten.
- MOLAP is not capable of containing detailed data.
- The storage utilization can be low if the data set is highly scattered.
- It can handle the only limited amount of data therefore, it's impossible to include a large amount of data in the cube itself.
Summary:
- Multidimensional OLAP (MOLAP) is a classical OLAP that
facilitates data analysis by using a multidimensional data
cube.
- MOLAP tools process information with the same amount
of response time irrespective of the level of summarizing.
- MOLAP server implements two level of storage to manage
dense and sparse data sets.
- MOLAP can manage, analyze, and store considerable
amounts of multidimensional data.
- It helps to automate computation of higher level of
aggregates data
- It is less scalable than ROLAP as it handles only a limited
amount of data.
Hybrid OLAP
- Hybrid OLAP is a mixture of both ROLAP and MOLAP. It offers fast computation of MOLAP and higher scalability of ROLAP. HOLAP uses two databases.
- Aggregated or computed data is stored in a multidimensional OLAP cube
- Detailed information is stored in a relational database.