Download presentation
Presentation is loading. Please wait.
Published byJesse Bond Modified over 9 years ago
2
Introduction to Analysis Services and OLAP Technology Tom Conlon and Rob Zare Program Managers SQL Server Business Intelligence Unit Microsoft Corp.
3
Topics What is OLAP? What is OLAP? 3 Why’s of OLAP 3 Why’s of OLAP Performance case study Performance case study Architecture summary Architecture summary Lots of demos! Lots of demos! – Excel – Office web component – Microsoft data analyzer – Building a cube with Analysis Manager
4
The First Database
5
The First Data Warehouse
6
The First DBA
7
OLTP Versus Data Warehousing OLTP supports OLTP supports – Granular transactions – Real time production systems – Current, changing data Data warehousing supports Data warehousing supports – Summarized queries – Consistent, heterogeneous data – Voluminous, historical, stable data OperatingBusinessManaging Business Business
8
What is OLAP? On Line Analytical Processing On Line Analytical Processing OLAP is FASMI OLAP is FASMI – F ast – A nalysis – S hared – M ultidimensional – I nformation
9
The 3 Why’s of OLAP Intuitive Metadata model for business users Intuitive Metadata model for business users – Just show them the data, and very quickly they ‘just get it’. Fast queries Fast queries – Orders of magnitude improvement over relational. – Can completely change usability of system Dedicated Language for Analysis and Modeling (MDX) Dedicated Language for Analysis and Modeling (MDX) – Built-in functions for handling time and group comparisons
10
OLAP Brief history 1970s Multidimensional database 1970s Multidimensional database – Boutique industry of specialists – Very expensive, rare deployment – Considered very “advanced” 1980s EIS 1980s EIS – Very simple UI – Still expensive, uncommon, tailored for a few users 1989 – named OLAP by E. F. Codd 1989 – named OLAP by E. F. Codd
11
OLAP in the 90s – Key Changes Orders of magnitude decline in disk storage prices Orders of magnitude decline in disk storage prices Internet and intranet is ubiquitous Internet and intranet is ubiquitous Key changes in corporate culture Key changes in corporate culture – ‘Analysts’ at all levels in corporation – Give decision makers direct access to data, cannot wait for IT to deliver a canned report 1998 – Microsoft Analysis Services 1998 – Microsoft Analysis Services – OLEDB for OLAP Standard
12
OLAP Architectures Multidimensional view of data Multidimensional view of data MOLAP, ROLAP, HOLAP MOLAP, ROLAP, HOLAP
13
Why #1: Intuitive Metadata FASMI
14
OLAP Objects Cubes Cubes Dimensions Dimensions Hierarchies Hierarchies Levels Levels Measures Measures Members Members Properties Properties
15
Product PeasCornBread MilkBeer Market Bos NYC Chi Sea Jan Mar Feb Time Units of beer sold in Boston in January Cube 300 100 225 425 775 600 210 345900 65 300 125 175 400 215 415 690 630 325 510
16
Dimensions Edges of a cube Edges of a cube Usually entities familiar to the end user Usually entities familiar to the end user – Customer, product, time, etc Typically 5 to 10 per cube, but sometimes in the 10’s or even more Typically 5 to 10 per cube, but sometimes in the 10’s or even more Hierarchical Hierarchical – E.g. Year/month/day, Country/State/City
17
Hierarchies & Levels USA USA – WA Seattle Seattle – 98109 Tom Conlon Tom Conlon 2001 2001 – Quarter1 February February – February20 Country State City Zip Customer Year Quarter Month Day
18
Measures “Quantities” stored in the cells of cubes “Quantities” stored in the cells of cubes Generally numeric, but not always Generally numeric, but not always Examples: Examples: – Units sold – Price
19
OLAP puts Data In The Hands Of Users End user analysis activities Pivoting Pivoting – Swapping page/row/column layout Slicing Slicing – Select specific dimension members on an axis Drilldown Drilldown – Navigate from summary to detail data Drill through Drill through – Retrieve granular data from Fact Table Calculations Calculations – Adding derived dimension members or measures Visualization Visualization – Charting, mapping, etc.
20
Microsoft Office demo demo Excel and Office Web Component Microsoft Data Analyzer
21
Why #2: OLAP is Fast FASMI Why is OLAP Fast? Why is OLAP Fast? Case Study Case Study
22
Aggregations – The Magic Behind OLAP Performance Calculate ahead of time the results of the aggregate cells Calculate ahead of time the results of the aggregate cells – Avoid scanning the detailed data during user interaction – Gain constant response time to queries independent of DB size or logic complexity
23
Data Explosion Syndrome Number of Dimensions Number of Aggregations OLAP Problem: Data Explosion (4 levels in each dimension)
24
Aggregation Design Fact Table Highest level of aggregation Most detailed Aggregations Show me all sales for all products for all...
25
Aggregation Design Fact Table Highest level of aggregation Show me all sales for all products for all...
26
Aggregation Design Fact Table MonthProducts Quarter Pro. Family QuarterProduct Month
27
Using Analysis Manager to Design a Cube demo demo
29
T3 - Data Overview Expanded version of a real production database Expanded version of a real production database Dimensions Dimensions – Market (80 Markets) – Period (268 Weeks, 67 Months, 5 Years) – Product (710,000 Products, 130,000 Brands, 1000 Classes, 500 Subgroups, 100 Groups, 9 Departments) Eight fact tables: different levels of aggregation Eight fact tables: different levels of aggregation – Therefore eight cubes, joined into one Virtual Cube – Exactly the tables used by production system today Partitioning by months Partitioning by months
30
Storage Requirements 39%
31
Performance Processing Processing – 7.7 billion rows, 50 hours – 153 million rows/hr – 42K rows/sec – 60-70% CPU utilization Querying Querying – 50-user workload, 1350 queries, 30-sec think time – Cold cache – Median response 0.08 sec, mean 1.2 sec – Low CPU load - we didn’t have enough queries! – You’ve got to experience this to appreciate it!
32
Why #3: MDX Language for Analysis FASMI
33
What is MDX MDX = Multi Dimensional Expressions MDX = Multi Dimensional Expressions A syntax for modeling and querying an OLAP database A syntax for modeling and querying an OLAP database Part of the OLE DB for OLAP Spec Part of the OLE DB for OLAP Spec Supported by multiple providers (OLAP Services, TM1, SAS, WhiteLight, SAP…) Supported by multiple providers (OLAP Services, TM1, SAS, WhiteLight, SAP…) It is the key for all advanced analytical capabilities of OLAP Services. It is the key for all advanced analytical capabilities of OLAP Services.
34
Typical MDX Expressions Modeled after SQL Modeled after SQLSelect {[Measures].[Store Sales],[Measures].[Unit Sales]} on 0 from Sales from Sales where ([Time].[1997], [Customers].[USA])
35
Typical MDX Expressions Share of Total Share of Total[Sales]/(Sales,Product.CurrentMember.Parent) Sales growth from the same period last year: Sales growth from the same period last year: ([Sales], [Time].CurrentMember) – ([Sales], ParallelPeriod([Year], 1) 3 Periods moving average 3 Periods moving average Avg( Time.CurrentMember.Lag(2): Time.CurrentMember, Measures.Inventory ) YTD sales: YTD sales: Sum( YTD(Time.CurrentMember), [Sales] )
36
Security in OLAP Cubes
37
Security Integrated NT security Integrated NT security Roles: groups of NT accounts with the same privileges Roles: groups of NT accounts with the same privileges Database Role Database Role – Defines the list of users Cube Role Cube Role – Cube access: Read, Write – Cell security: Read, Write, Contingent Read
38
Heterogeneous coordinates system
39
Summary OLAP is about empowering analysts within the corp with direct access to data OLAP is about empowering analysts within the corp with direct access to data Intuitive business UI Intuitive business UI – Drill down, up, through, across – Slice and dice, Formatting and graphics FAST response time FAST response time Multidimensional Expression Language (MDX) for queries Multidimensional Expression Language (MDX) for queries Rapid adoption in 90s and beyond Rapid adoption in 90s and beyond
40
Architecture – Single Server OLAPStore Application ADO MD PivotTable Service OLEDB for OLAP AnalysisServer AnalysisManager DSO SQL Server DataWarehouse Other OLE DB Providers OLEDB CLIENT SERVER
41
Client Access Architecture OLAP Server Pivot Table Service (OLEDB for (OLEDB forOLAP) ADOMD VB VBA C++ Excel Office Web Component
42
Don’t forget to complete the on-line Session Feedback form on the Attendee Web site https://web.mseventseurope.com/teched/ https://web.mseventseurope.com/teched/
43
© 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.