Prof. Bayer, DWH, Ch.4, SS 20021 Chapter 4: Dimensions, Hierarchies, Operations, Modeling.

Slides:



Advertisements
Similar presentations
Vorlesung Datawarehousing Table of Contents Prof. Rudolf Bayer, Ph.D. Institut für Informatik, TUM SS 2002.
Advertisements

Dimensional Modeling.
OLAP Tuning. Outline OLAP 101 – Data warehouse architecture – ROLAP, MOLAP and HOLAP Data Cube – Star Schema and operations – The CUBE operator – Tuning.
5.1Database System Concepts - 6 th Edition Chapter 5: Advanced SQL Advanced Aggregation Features OLAP.
Data Warehousing CPS216 Notes 13 Shivnath Babu. 2 Warehousing l Growing industry: $8 billion way back in 1998 l Range from desktop to huge: u Walmart:
OLAP Services Business Intelligence Solutions. Agenda Definition of OLAP Types of OLAP Definition of Cube Definition of DMR Differences between Cube and.
Database Systems: Design, Implementation, and Management Tenth Edition
OLAP. Overview Traditional database systems are tuned to many, small, simple queries. Some new applications use fewer, more time-consuming, analytic queries.
Online Analytical Processing. On-Line Analytical Processing (OLAP) Tools The use of a set of graphical tools that provides users with multidimensional.
Advanced Querying OLAP Part 2. Context OLAP systems for supporting decision making. Components: –Dimensions with hierarchies, –Measures, –Aggregation.
Chap8: Trends in DBMS 8.1 Database support for Field Entities 8.2 Content-based retrieval 8.3 Introduction to spatial data warehouses 8.4 Summary.
COMP 578 Data Warehousing And OLAP Technology Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.
13 Chapter 13 The Data Warehouse Hachim Haddouti.
1 9 Adv. DBMS Data Warehouse CSC5301 Review Hachim Haddouti.
CSE6011 Warehouse Models & Operators  Data Models  relations  stars & snowflakes  cubes  Operators  slice & dice  roll-up, drill down  pivoting.
Chapter 13 The Data Warehouse
Online Analytical Processing (OLAP) Hweichao Lu CS157B-02 Spring 2007.
OLAP OPERATIONS. OLAP ONLINE ANALYTICAL PROCESSING OLAP provides a user-friendly environment for Interactive data analysis. In the multidimensional model,
1 Basic concepts of On-Line Analytical processing DT211 /4.
8/20/ Data Warehousing and OLAP. 2 Data Warehousing & OLAP Defined in many different ways, but not rigorously. Defined in many different ways, but.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Decision Support Chapter 23.
Week 6 Lecture The Data Warehouse Samuel Conn, Asst. Professor
DWH – Dimesional Modeling PDT Genči. 2 Outline Requirement gathering Fact and Dimension table Star schema Inside dimension table Inside fact table STAR.
Data Warehouse & Data Mining
IST722 Data Warehousing Business Intelligence Development with SQL Server Analysis Services and Excel 2013 Michael A. Fudge, Jr.
Analysis Services 101 Dave Fackler, MCDBA, MCSE, MCT Director, Business Intelligence Practice Intellinet Corporation.
Ahsan Abdullah 1 Data Warehousing Lecture-11 Multidimensional OLAP (MOLAP) Virtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for.
1 Cube Computation and Indexes for Data Warehouses CPS Notes 7.
OnLine Analytical Processing (OLAP)
OLAP & DSS SUPPORT IN DATA WAREHOUSE By - Pooja Sinha Kaushalya Bakde.
Data Warehousing.
BI Terminologies.
October 28, Data Warehouse Architecture Data Sources Operational DBs other sources Analysis Query Reports Data mining Front-End Tools OLAP Engine.
BUSINESS ANALYTICS AND DATA VISUALIZATION
Prof. R. BayerDWH, Ch. 3-1, SS Ch.3 The Multidimensional Data Model Ch. 3.1 Introduction to MDD Model Requirements: must support typical analyses,
Prof. Bayer, DWH, CH. 4.5, SS Chapt.4.5 Modeling of Features of Dimensions Within a dimension hierarchy, elements at the same level may have different.
Prof. Bayer, DWH, Ch.5, SS Chapter 5. Indexing for DWH D1Facts D2.
Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 13 Business Intelligence and Data Warehouses.
UNIT-II Principles of dimensional modeling
Indexes and Views Unit 7.
1 On-Line Analytic Processing Warehousing Data Cubes.
A POWER OF OLAP TECHNOLOGY National Technical University of Ukraine “Kiev Polytechnic Institute” Heat and energy design faculty Department of automation.
Chapter 3.2 Basic Concepts of the MDD-Model
What is OLAP?.
Data Warehousing.
Advanced Database Concepts
Prof. Bayer, DWH, Ch.7, SS20021 Chapt. 7 Multidimensional Hierarchical Clustering Fig. 3.1 Hierarchies in the `Juice and More´ schema Year (3) Month (12)
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support.
1 Online Analytical Processing (OLAP) Anjali Gupta Mithun Arora Aameek Singh Kranthi Kumar.
SQL Server Analysis Services Understanding Unified Dimension Model (UDM)
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support Chapter 25.
1 Database Systems, 8 th Edition Star Schema Data modeling technique –Maps multidimensional decision support data into relational database Creates.
Introduction to OLAP and Data Warehouse Assoc. Professor Bela Stantic September 2014 Database Systems.
Data Warehousing and OLAP Outline u Models & operations u Implementing a warehouse u Future directions.
Data Analysis and OLAP Dr. Ms. Pratibha S. Yalagi Topic Title
Introduction to SQL Server Analysis Services
Data Warehousing CIS 4301 Lecture Notes 4/20/2006.
Chapter 13 Business Intelligence and Data Warehouses
On-Line Analytic Processing
Chapter 13 The Data Warehouse
What is OLAP OLAP allows to model data in a multidimensional way like a data cube in order to look for the data from many perspectives.
Chapter 5: Advanced SQL Database System concepts,6th Ed.
DATA CUBE Advanced Databases 584.
Chapter 4: Dimensions, Hierarchies, Operations, Modeling
DataMart (Data Warehouse) Tool:
Introduction of Week 9 Return assignment 5-2
Online analytical processing (OLAP) is a category of software technology that enables analysts, managers, and executives to gain insight into data through.
Chapt. 7 Multidimensional Hierarchical Clustering
Presentation transcript:

Prof. Bayer, DWH, Ch.4, SS Chapter 4: Dimensions, Hierarchies, Operations, Modeling

Prof. Bayer, DWH, Ch.4, SS Chapter 4.1 Hierarchical Dimensions Def: Hierarchical Dimensions are composite keys with an order on the key attributes. Prefixes are allowed as keys. Ex: dimension Time = ( Year, Month, Day) legal keys are: (Year)or (Year, Month)or (Year, Month, Day) Def: Basic facts are values in cells with full foreign keys

Prof. Bayer, DWH, Ch.4, SS Aggregations, Summaries Def: Aggregations are facts in cells with partial keys. These facts are derived by aggregation functions. In a cube with derived facts the aggregation function must be specified. Ex: Sales on a monthly basis Sales (Year, Month) =  Sales (Year, Month, Days) Aggregation Functions: count, sum, avg, min, max,...

Prof. Bayer, DWH, Ch.4, SS Note on Aggregations Aggregations may be stored explicitely in the cube, but then they should be secured by integrity constraints Aggregations may be virtual and must be computed on demand when needed i.e., classical tradeoff between storage space, performance, flexibility

Prof. Bayer, DWH, Ch.4, SS Relational Modeling Expand and complete partial key by ALL (Year, Month, ALL) (ALL, Month, ALL) (ALL, ALL, ALL) to obtain simple and complete relational keys via special symbol ALL Question: SQL to compute complete cube with all aggregations from base-cube?

Prof. Bayer, DWH, Ch.4, SS Hierarchy Example

Prof. Bayer, DWH, Ch.4, SS Chapter 4.2: OLAP Operations Def: Roll-up computes higher aggregations from lower aggregations or base facts according to hierarchies Ex: for base facts (Year, Month, Day) there are 3 hierarchical roll-up functions: Roll-up (Year, Month, ALL) Roll-up (Year, ALL, ALL) Roll-up (ALL, ALL, ALL) which are supported in general (canonical roll-ups)

Prof. Bayer, DWH, Ch.4, SS Additional Roll-ups: (ALL, Month, ALL) etc. therefore aggregations or in general 2 m -1 aggregations for m hierarchy levels Note: see later chapters for the support of arbitrary aggregations Note: for m dimensions with h 1, h 2,...h m hierarchy levels there are different aggregations for a given aggregation function.

Prof. Bayer, DWH, Ch.4, SS Size of base cube 2-dim example Dim1: (4, 5)= cardinality of the dimension levels Dim2: (6, 7, 2) (4 5) ( 6 7 2)1680 = Size of base cube

Prof. Bayer, DWH, Ch.4, SS Number of cells per aggregation function 1645 Size of hierarchically aggregated Cube

Prof. Bayer, DWH, Ch.4, SS Size of completely aggregated cube | |0 || 00|00 0| |0 || 0|000 ||| |0000 ||||| x 6 = x 168 = x x 1008 = x 1008 = = 5040 : :

Prof. Bayer, DWH, Ch.4, SS Computation with binary Tree

Prof. Bayer, DWH, Ch.4, SS Lemma: Given a data cube with m dimensions with h 1,..., h m hierarchy levels resp. Let the hierarchy levels of dimension i have Then the base cube has and the cube with all aggregations has Size of the Cube

Prof. Bayer, DWH, Ch.4, SS Size of the Cube (2) The aggregated cube is larger than the base cube by the factor

Prof. Bayer, DWH, Ch.4, SS Size of the hierarchically aggregated Cube For a hierarchy i with h i levels and there are hierarchical aggregation possibilities, i.e. Lemma: A hierarchically completely aggregated data cube has

Prof. Bayer, DWH, Ch.4, SS Ex: (4 5) (6 7 2) size of the hierarchically aggregated cube plus base cube = ( ) * ( ) = 25 * 133 = 3325 Ex: (4 5) (6 7 2)( 8 3) size of base cube:40,320 hierarchically aggregated cube plus base: = ( ) * ( ) * ( ) = 3325 * 33 = 109,725

Prof. Bayer, DWH, Ch.4, SS Ex: (4 5) (6 7 2)( 8 3)(5 9) size of base cube:1 814,400 hierarchically aggregated cube plus base: = 109,725 * ( ) = 5 595,975

Prof. Bayer, DWH, Ch.4, SS Additional comments on aggregations 1. In addition to the size of the complete cube there is a factor of 5 for the various aggregation functions, e.g. sum, avg, min, max, count, So far we did not consider general restrictions, e.g. „all Saturdays in March“ or „vacation months July and August“, which cross bounds of hierarchy levels Interactive query formulation results in an unlimited number of aggregations Optimization: restrictions corresponding to hierarchy levels shoud be pushed down, since they lead to query boxes

Prof. Bayer, DWH, Ch.4, SS Note: See later chapters for multidimensional indexes and MHC techniques and optimization of ROLAP-algebra to support hierarchical canonical aggregations like Roll-up (Year, Month, ALL) Roll-up (Year, ALL, ALL) Roll-up (ALL, ALL, ALL) but not Roll-up ( ALL, Month, ALL)

Prof. Bayer, DWH, Ch.4, SS Optimization Problem Non-hierarchical aggregation, e.g. March for all years decompose into union of several restrictions, e.g.  Sales (Year, Month, Day) where Month = March and (Year = 1996 or Year = 1997 or Year = 1998) see later for translation into ROLAP expression and transformations for optimization

Prof. Bayer, DWH, Ch.4, SS Multiple Hierarchies e.g. the time hierarchy Aggregation for month e.g. by covering QB of weeks and postfiltering

Prof. Bayer, DWH, Ch.4, SS Navigation Operations Drill Down: first show single result for aggregated value, e.g. sales per day, then show: hourly values for days with very high or very low sales in order to plan working hours for sales people better Other Examples: daily sales during Christmas season vacation bookings for skiing on fasching

Prof. Bayer, DWH, Ch.4, SS Roll-up: Compute Aggregations

Prof. Bayer, DWH, Ch.4, SS Slicing Selection of a smaller data cube or even reduction of a multidimensional datacube to fewer dimensions by a point restriction in some dimension (becomes pivot element)

Prof. Bayer, DWH, Ch.4, SS Dicing (würfeln) rotate result, to show another view, e.g. exchanging rows and columns Slice management precomputing and caching of several slices for later or special use, e.g. for a special sales person

Prof. Bayer, DWH, Ch.4, SS Chapter 4.3 Modeling Methodology Purpose: analysis of business processes, characteristic facts (Kennzahlen) for managers to support decisions (DSS) Steps of Decision Process: 1. Which business processes to model and analyze? 2. What are the measures, where do they come from? 3. Which degree of details, e.g. minutes like in SAP? Which precision is required for OLAP? 4. Common properties of measures to determine dimensions? Brand, Time, geogr. Region, Productgroup? Dependencies between levels of hierarchies?

Prof. Bayer, DWH, Ch.4, SS Attributes of dimensions, e.g. of products screen size of TV & computers cc and PS for cars focal length for camera Problem: how common are properties to dimensions? Non common properties cannot be modeled by levels of dimensions, are called features at GfK (up to 50), they are numbered, their meaning dependent on a specific dimension element, e.g. TV: screen size color audio system Car:transmission ccPS#cyl...

Prof. Bayer, DWH, Ch.4, SS Constant or changing attributes of dimensions? E.g. New models of car makers new powersource: electrical, hydrogen, solar attributes are rather stable, but still should be planned ahead! (mergers like Daimler-Crysler) 7. Sparsity: one hypercube or several, i.e. multicube model? Influences storage requirements, query formulation and performance, cannot be hidden easily from user, maybe by views?

Prof. Bayer, DWH, Ch.4, SS Caching and management of aggregates? Time Optimal Number of aggregates

Prof. Bayer, DWH, Ch.4, SS Chapter 4.4 Comparison of OLAP Architectures 1.MOLAP: Multidimensional OLAP 2.ROLAP: Relational OLAP 3. HOLAP: Hybrid OLAP

Prof. Bayer, DWH, Ch.4, SS MOLAP Architecture

Prof. Bayer, DWH, Ch.4, SS MDDBMS in ANSI-X3-Sparc

Prof. Bayer, DWH, Ch.4, SS Logical components of a MDDBMS

Prof. Bayer, DWH, Ch.4, SS ROLAP Architecture

Prof. Bayer, DWH, Ch.4, SS HOLAP Architecture

Prof. Bayer, DWH, Ch.4, SS Reasons for MOLAP performance write access Data Marts functional power Reasons for ROLAP scalability flexible precomputations, partial aggregates parallelism DB-mamagement and ACID