2 Microsoft SQL Server 2008 Analysis Services enhancements Pat Martin ANZ SQL Premier Field Engineer Microsoft New Zealand BIN 310.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Web RoleWorker Role At runtime each Role will execute on one or more instances A role instance is a set of code, configuration, and local data, deployed.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Implementing Business Analytics with MDX Chris Webb London September 29th.
Amit Banerjee Support Escalation Engineer Microsoft Corporation SQL Server FAQ: TroubleshootingSQL:
Ryan Jamieson Session Code: BIN302 Director IS Partners.
Gavin Russell-Rockliff BI Technical Specialist Microsoft BIN305.
Markus Raatz General Manager ixto GmbH Session Code: DAT302.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Understanding Active Directory
Deliver Rich Analytics with Analysis Services SQL Server Donald Farmer Group Program Manager Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Analysis Services 101 Dave Fackler, MCDBA, MCSE, MCT Director, Business Intelligence Practice Intellinet Corporation.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
SSAS - Designing, Development and Deployment Best practices Amit Bansal
2 An Overview of SQL Server 2008 New Features Jeremy Boyd Mindscape MSDN Regional Director & MVP – SQL Server DAT302.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
Speaker Name 00/00/2013. Solution Requirements.
Design and Planning for a BI Project Reeza Ali Architect Microsoft Corporation.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Thavash Govender Senior BI Consultant iSolve Business Solutions BIN307.
2 Advanced Dashboard Creation With Microsoft Office PerformancePoint Server 2007 Myles Matheson & Chris Du Toit Information Management Practice HP New.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
Alyson Powell Erwin Sr. Program Manager Microsoft BIN307.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

Patrick Ortiz Global SQL Solution Architect Dell Inc. BIN209.
Julie Strauss Senior Program Manager Lead Microsoft Corporation
Data Platform and Analytics Foundational Training
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
6/19/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
What’s New in SQL Server 2016 Master Data Services
TechEd /13/2018 7:46 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Excel Services Deployment and Administration
Test Upgrade Name Title Company 9/18/2018 Microsoft SharePoint
Top 10 Best Practices for Microsoft SQL Server 2008 Analysis Services
Возможности Excel 2010, о которых следует знать
Entity Based Staging SQL Server 2012 Tyler Graham
TechEd /24/2018 6:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Hierarchies SQL Server 2012 Tyler Graham Senior Program Manager
SQL Server 2016 Query Data Store
Kasper de Jonge Microsoft Corporation
Microsoft SQL Server 2014 for Oracle DBAs Module 7
Microsoft Office 365 ProPlus Deployment for IT Pros
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows Azure Overview
Andrew Fryer Microsoft UK
Шитманов Дархан Қаражанұлы Тарих пәнінің
© 2008 Microsoft Corporation. All rights reserved
Tech·Ed North America /7/2019 2:30 PM
Presentation transcript:

2 Microsoft SQL Server 2008 Analysis Services enhancements Pat Martin ANZ SQL Premier Field Engineer Microsoft New Zealand BIN 310

3 What We Will Cover Background to SSAS “Design to perform” Performance monitoring Improved computation Enhanced Backup and other improvements

4 Data Source View Attribute-based Dimension Meta Data Globalisation/Translation Proactive Caching Multiple Fact tables Perspectives centralised calculations engine Disk based dimension storage Role playing dimensions Failover Clustering Multi-Instances Server Synching Enhanced backup and restore Integration With Profiler Capture and Replay Dr Watson Integrated Management with SQL Server Fine grain administration roles XML-based DDL scripting Auto referential integrity MDX Scripts MDX Debugger Centralised KPI Frame Work XML/A AMO Many to Many Dimensions A Quick Look Back at Analysis Services 2005

5 AS Enhancements in SQL 2008 Block Computation Block Computation Backup scalability Backup scalability Read-Only DB for scale out Read-Only DB for scale out Block Computation Block Computation Backup scalability Backup scalability Read-Only DB for scale out Read-Only DB for scale out Resource Monitoring Resource Monitoring AMO Warnings AMO Warnings Dimension Design Dimension Design Cube Design Cube Design AMO Warnings AMO Warnings Dimension Design Dimension Design Cube Design Cube Design

6 Peformance: "Design It Right" AMO Warnings AMO Warnings Dimension Design Dimension Design Cube Design Cube Design Aggregation Designer + Improved algorithms Aggregation Designer + Improved algorithms AMO Warnings AMO Warnings Dimension Design Dimension Design Cube Design Cube Design Aggregation Designer + Improved algorithms Aggregation Designer + Improved algorithms

7 AS Tools in SQL 2008: Design it Right the First Time! Background OLAP models can be quite complex, with many interdependencies between objects Best practices and performance tuning trips are not generally well known and scattered AS 2008 Focus Embed best practices and performance tuning tricks into the object model and user interface Modify design of key areas of the interface so that an optimal design is the natural outcome

8 Top Performance Tips Attribute Relationships Aggregation Design Cube Design

9 Attribute Relationships 1-n relationships between attributes Server simply “works better” City State Country Month Quarter Year Date Dimension Design

10 Rigid versus Flexible Relationships Flexible relationships can change Rigid relationships do not change City State Phone Number Customer City Month Quarter Dimension Design

11 Customer Gender Marital Age City State Country Relationships And The Key Attribute All attributes have an implicit relationship to the key attribute Dimension Design

12 Redundant Relationships No need for explicit relationships where implicit relationships already exist Month Quarter Year Date City State Country Dimension Design

13 Natural Hierarchies 1-n relationships between every pair of adjacent levels City State Country Customer 1-n Age Gender Customer n City Country 1-n Dimension Design

14 Hierarchies And Performance Only natural hierarchies are materialised on disk during processing Unnatural hierarchies are built on the fly during queries Cached in memory Server internally decomposes into natural components Dimension Design

15 Attribute Relationship Designer New designer for viewing and editing attribute relationships Many built-in validations help in optimal dimension design Dimension Design

16 Dimension Wizard Fewer paths and branches More powerful Automatically create parent-child Classify member properties Safer error configuration settings Dimension Design

17 Development Experience AMO Warnings Over 40 best practices integrated into real-time designer checks Think of it as auto BPA while you develop Subtle Blue squiggly lines and build time warnings No pop-ups to get in your way Dismissible By instance or globally Can specify comment in each case

18 Analysis Services 2008 Design Tools Dimension Design Pat Martin ANZ SQL Premier Field Engineer Microsoft N.Z.

19 Aggregation Design

20 Customers All Customers CountryStateCityName Products All Products CategoryBrandItemSKU FactscustIDSKU Units Sold Sales $ $67.32 … Highest-Level Aggregation CustomerProduct Units Sold SalesAllAll $345,212, Intermediate Aggregation countryCodeproductID Units Sold SalesCansd $23, USyu $57, … What Is An Aggregation? A subtotal of partition data based on a set of attributes from each dimension AggregationsAggregations

21 Customers All Customers (1) Country (3) State (80) City (578) Name (3811) Product All Products (1) Category (60) Brand (911) Item (7621) SKU (8211) Time All Time (1) Year (3) Quarter (12) Month (36) Day (1095) How Big Is An Aggregation? Aggregations at lower levels have more possible rows… (All, All, All)1 x 1 x 1= 1 (Country, Item, Quarter) 3 x 7621 x 12= 274,356 (Name, SKU, Day)3811 x 8211 x 1095= 34,264,872,495 Actual number of rows depends on the data sparsity Size also depends on the number of measures

22 Aggregations And Performance Query levelsAggregation used Max Cells (All, All, All)(All, All, All) 1 (Country, Item, Quarter)(Country, Item, Quarter) 274,356 (Country, Brand, Quarter)(Country, Item, Quarter) 274,356 (Country, Category, All) (Country, Item, Quarter) 274,356 (State, Item, Quarter)(Name, SKU, Day) 34,264,872,495 (City, Category, Year) (Name, SKU, Day) 34,264,872,495 Using a higher-level aggregation means fewer cells to consider Customers All Customers CountryStateCityNameProducts All Products CategoryBrandItemSKU Time All Time YearQuarterMonthDay AggregationsAggregations

23 Some Hints For Aggregations Define all possible attribute relationships Set accurate attribute member counts and fact table counts Set AggregationUsage Set rarely queried attributes to None Commonly queried attributes to Unrestricted AggregationsAggregations

24 7-steps In Aggregation Design 1. Use Storage Design Wizard for the initial aggregations (~20% perf gain) 2. Enable query log 3. Run pilot workload with limited users 4. Refine with Usage Based Optimisation Wizard 5. Use a larger perf gain (70+%) 6. Reprocess partitions for new aggregations to take effect 7. Periodically use UBO to refine aggregations AggregationsAggregations

25 New UBO Algorithm Query #Run #2 - Old UBORun #3 - New UBO 00:02:320:02:11 10:00:320:00:04 20:00:01 30:00:080:00:10 40:00:020:00:04 50:00:06 60:00:000:00:01 70:04:270:00:17 80:06:380:00:03 90:00:460:00:12 100:00:010:00:00 110:00:00 120:07:190:06:20 130:00:09 140:02:060:02:16 150:04:390:04:38 160:04:340:05:48 170:00:060:00:07 180:00:090:00:04 190:00:080:00:06 200:00:05 210:00:320:00:29 Total0:35:000:23:11 AggregationsAggregations

26 New UBO Algorithm Query #Run #2 - Old UBORun #3 - New UBO 00:02:320:02:11 10:00:320:00:04 20:00:01 30:00:080:00:10 40:00:020:00:04 50:00:06 60:00:000:00:01 70:04:270:00:17 80:06:380:00:03 90:00:460:00:12 100:00:010:00:00 110:00:00 120:07:190:06:20 130:00:09 140:02:060:02:16 150:04:390:04:38 160:04:340:05:48 170:00:060:00:07 180:00:090:00:04 190:00:080:00:06 200:00:05 210:00:320:00:29 Total0:35:000:23:11 AggregationsAggregations

Aggregation Design Tools Wizard Enhancements Support for modifying aggregation usage property Ability to append results of UBO to an existing aggregation design Potentially new UBO algorithm Dedicated Designer View aggregation designs and aggregations in both management and development environments Manually edit/create/delete aggregations Built-in validations to assist in creating optimal designs AggregationsAggregations

28 Analysis Services 2008 Design Tools Aggregation Design Pat Martin ANZ SQL Premier Field Engineer Microsoft N.Z.

Peformance: Monitoring Resource Monitoring Resource Monitoring

Resource Monitoring (DMV)

31 Analysis Services DMV Schema

32 Dynamic Management Views Pat Martin ANZ SQL Premier Field Engineer Microsoft N.Z.

33 Performance: "Run" Block Computation Block Computation Backup scalability Backup scalability Read-Only DB for scale out Read-Only DB for scale out Block Computation Block Computation Backup scalability Backup scalability Read-Only DB for scale out Read-Only DB for scale out

34 MDX Query Performance: Subspace Computation Cube space populated at fact table generally extremely “sparse” Values only exist for small minority of possible combinations of dimension keys Goal is to compute expressions only where they need to be computed Most often, everything takes on a default value typically (but not always) null Partially implemented in Analysis Services 2005 See orders of magnitude performance improvement where implemented

35 An Example Consider the expression: WITH MEMBER Measures.ContributionToParent AS ‘measures.Sales/(measures.Sales, Product.Currentmember.parent)’ SELECT Product.[Product Family].members ON COLUMNS, Customer.Country.members ON ROWS FROM Sales WHERE measures.ContributionToParent How is the expression computed in the query space?

36 Cell-by-cell Computation DrinkFoodNon-Consumable Canada Mexico USA DrinkFoodNon-Consumable Canada(null) Mexico(null) USA $ 24, $ 191, $ 50, All Products Canada (null) Mexico (null) USA $ 266, AS Calc Engine Rules: Null / Null = Null Measures.ContributionToParent measures.[Unit Sales](Measures.Sales, Product.Currentmember.Parent)’ / = (null) 9.22%71.95%18.83%

37 Block Computing Goals Only calculate non-null* values. Perform the cell navigation (ie,.prevmember,.parent) just once instead of for every cell Navigate for the entire space *An oversimplification. Actually, we want to avoid calculating non-default values. For example: iif( measures.Sales>0, measures.profit/measures.sales, 0)

38 Block Computing CountryProductMeasureValue USAAll ProductsSales $266, CountryProductMeasureValue USADrinkSales $24, USAFoodSales $191, USA Non- ConsumableSales $50, CountryProductMeasureValue USADrinkContribution to Parent 9.22% USAFoodContribution to Parent 71.95% USANon-ConsumableContribution to Parent 18.83% DrinkFoodNon-Consumable Canada(null) Mexico(null) USA9.22%71.95%18.83% 2) Perform the computation for the non-null values - only 3 computations instead of 9… 3) …and everything else is null 1. Retrieve non-null values from storage engine

39 Subspace Computation Pat Martin ANZ SQL Premier Field Engineer Microsoft N.Z.

40 Scalable Backup

41 Backup Performance - AS 2008

42 Scalable Shared Databases (Read-only)... SAN storage Analysis Server Virtual IP

43 Processing Server Query Servers Clients: Excel, Proclarity, Internet Explorer Load Balancer – NLB, F5, Custom ASP.NET Cube Processing Detach & Attach Read Only DB on Shared SAN Drive

44 Session Summary SSAS 2008 helps you “design to perform” Performance monitoring enhances manageability Engine improvements increase performance Backup and shared scalable database support

45

46 Resources Tech·TalksTech·Ed Bloggers Live SimulcastsVirtual Labs Evaluation licenses, pre-released products, and MORE! Developer’s Kit, Licenses, and MORE!

Related Content DAT361 SQL Server 2008 Security Deep Dive BIN309 SQL Server 2008 ETL drill down BIN310 SQL Server 2008 Analysis Server (SSAS) enhancements DAT362 SQL Server Spatial in the Spotlight BIN352 Microsoft SQL Server 2008 Reporting Services: Architecture Overview BIN311 Advanced Dashboard Creation with MOSS 2007 DAT364 End-to-End Troubleshooting for Microsoft SQL Server 2005/2008 BIN401 Optimising Query Performance in SQL Server 2008 Analysis Services DAT355 Upgrading to Microsoft SQL Server 2008: Notes from Early Adopters BIN402 Building and Deploying Advanced MOSS 2007 Planning Applications

49 Please complete an evaluation

50 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.