Download presentation
Presentation is loading. Please wait.
Published bySteven Blankenship Modified over 8 years ago
1
Ahsan Abdullah 1 Data Warehousing Lecture-10 Online Analytical Processing (OLAP) Virtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics Research www.nu.edu.pk/cairindex.asp National University of Computers & Emerging Sciences, Islamabad Email: ahsan@cluxing.com
2
Ahsan Abdullah 2 DWH & OLAP Relationship between DWH & OLAP Data Warehouse & OLAP go together. Analysis supported by OLAP
3
Ahsan Abdullah 3 Supporting the human thought process How many such query sequences can be programmed in advance? THOUGHT PROCESS QUERY SEQUENCE An enterprise wide fall in profit Profit down by a large percentage consistently during last quarter only. Rest is OK What is special about last quarter ? Products alone doing OK, but North region is most problematic. What was the quarterly sales during last year ?? What was the quarterly sales at regional level during last year ?? What was the monthly sale for last quarter group by products What was the monthly sale of products in north at store level group by products purchased OK. So the problem is the high cost of products purchased in north. What was the quarterly sales at product level during last year? ? What was the monthly sale for last quarter group by region
4
Ahsan Abdullah 4 Analysis of last example Analysis is Ad-hoc Analysis is interactive (user driven) Analysis is iterative Answer to one question leads to a dozen more Analysis is directional Drill Down Roll Up Pivot More in subsequent slides
5
Ahsan Abdullah 5Challenges… Not feasible to write predefined queries. Fails to remain user_driven (becomes programmer driven). Fails to remain ad_hoc and hence is not interactive. Enable ad-hoc query support Business user can not build his/her own queries (does not know SQL, should not know it). On_the_go SQL generation and execution too slow.
6
Ahsan Abdullah 6Challenges Contradiction Want to compute answers in advance, but don't know the questions Solution Compute answers to “all” possible “queries”. But how? NOTE: Queries are multidimensional aggregates at some level
7
Ahsan Abdullah 7 “All” possible queries (level aggregates) Province FrontierPunjab...Division MultanLahorePeshawarMardan... Lahore... Gugranwala City Zone GulbergDefense... District LahorePeshawar ALL
8
Ahsan Abdullah 8 OLAP: Facts & Dimensions FACTS: Quantitative values (numbers) or “measures.” e.g., units sold, sales $, C o, Kg etc. DIMENSIONS: Descriptive categories. e.g., time, geography, product etc. DIM often organized in hierarchies representing levels of detail in the data (e.g., week, month, quarter, year, decade etc.).
9
Ahsan Abdullah 9 Where Does OLAP Fit In? It is a classification of applications, NOT a database design technique. Analytical processing uses multi-level aggregates, instead of record level access. Objective is to support very I.fast II.iterative and III.ad-hoc decision-making.
10
Ahsan Abdullah 10 Where does OLAP fit in? Transaction Data Presentation Tools Reports OLAP Data Cube (MOLAP) Data Loading ? Decision Maker
11
Ahsan Abdullah 11 OLTP vs. OLAP FeatureOLTPOLAP Level of dataDetailedAggregated Amount of data per transaction SmallLarge ViewsPre-definedUser-defined Typical write operation Update, insert, deleteBulk insert “age” of dataCurrent (60-90 days)Historical 5-10 years and also current Number of usersHighLow-Med TablesFlat tablesMulti-Dimensional tables Database sizeMed (10 9 B – 10 12 B)High (10 12 B – 10 15 B) Query OptimizingRequires experienceAlready “optimized” Data availabilityHighLow-Med
12
Ahsan Abdullah 12 OLAP FASMI Test Fast: Delivers information to the user at a fairly constant rate. Most queries answered in under five seconds. Analysis: Performs basic numerical and statistical analysis of the data, pre-defined by an application developer or defined ad-hocly by the user. Shared: Implements the security requirements necessary for sharing potentially confidential data across a large user population. Multi-dimensional: The essential characteristic of OLAP. Information: Accesses all the data and information necessary and relevant for the application, wherever it may reside and not limited by volume....from the OLAP Report by Pendse and Creeth.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.