DirectQuery vs In-Memory in BISM



Similar documents
Business Intelligence, Data warehousing Concept and artifacts

Business Intelligence in SharePoint 2013

Power BI Performance. Tips and Techniques

Managing the PowerPivot for SharePoint Environment

Creating BI solutions with BISM Tabular. Written By: Dan Clark

MOC 20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

Presented by: Jose Chinchilla, MCITP

Microsoft SQL Server 2012: What to Expect

Business Intelligence in Excel 2013 Excel, PowerPivot and Power View. Stéphane Fréchette Friday April 26, 2013

SQL Server 2012 Business Intelligence Boot Camp

Implementing Data Models and Reports with Microsoft SQL Server 2012 MOC 10778

BI Architecture with SQL 2012 & SharePoint 2010

PowerPivot Microsoft s Answer to Self-Service Reporting

Course 40009A: Updating your Business Intelligence Skills to Microsoft SQL Server 2012

Report Model (SMDL) Alternatives in SQL Server A Guided Tour of Microsoft Business Intelligence

70-467: Designing Business Intelligence Solutions with Microsoft SQL Server

Updating Your SQL Server Skills to Microsoft SQL Server 2014

Course 10977A: Updating Your SQL Server Skills to Microsoft SQL Server 2014

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014 va

VISUALIZING DATA POWER VIEW. with MICROSOFT. Brian Larson. Mark Davis Dan English Paui Purington. Mc Grauu. Sydney Toronto

The Brave New World of Power BI and Hybrid Cloud

MICROSOFT EXAM QUESTIONS & ANSWERS

Updating Your SQL Server Skills from Microsoft SQL Server 2008 to Microsoft SQL Server 2014

Managed Self-Service BI & Data As A Service

MS 10977B Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Updating Your Skills to SQL Server 2016

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

Building a BI Solution in the Cloud

Updating Your SQL Server Skills to Microsoft SQL Server 2014

Introducing Business Intelligence Semantic Model SAMPLE. 1.1 What is Business Intelligence Semantic Model?

10977B: Updating Your SQL Server Skills to Microsoft SQL Server 2014

EMC OPTIMIZATION FOR MICROSOFT SQL SERVER 2012 BUSINESS INTELLIGENCE

Course 10977: Updating Your SQL Server Skills to Microsoft SQL Server 2014

Course Outline. Upgrading Your Skills to SQL Server 2016 Course 10986A: 5 days Instructor Led

Updating Your SQL Server Skills to Microsoft SQL Server 2014 (10977) H8B96S

Tagetik Extends Customer Value with SQL Server 2012

Deep-Dive to Analysis Services Security

SQL Server Analysis Services Complete Practical & Real-time Training

Implementing Data Models and Reports with Microsoft SQL Server

Using Microsoft Business Intelligence Dashboards and Reports in the Federal Government

SBI2013: Building BI Solutions using Excel and SharePoint 2013

Performance Tuning and Optimizing SQL Databases 2016

SQL Server 2016 BI Any Data, Anytime, Anywhere. Phua Chiu Kiang PCK CONSULTING MVP (Data Platform)

Microsoft Dynamics NAV Reporting Options. Derek Lamb May 2010

Power BI Dashboarding. Alberto Ferrari SQLBI.

Understanding Microsoft s BI Tools

Choosing the right Mobile BI tool: SSRS vs Power BI vs Datazen

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Parallel Data Warehouse

Excel Excel 97 Add-In. Excel 2010 PowerPivot. Excel Add-In Pivot Table Services Office Web Components

Melissa Coates. Tools & Techniques for Implementing Corporate and Self-Service BI. Triad SQL BI User Group 6/25/2013. BI Architect, Intellinet

SQL 2012: Bringing Big Data to the Desktop

Upgrading Your SQL Server Skills to Microsoft SQL Server 2014

Combined Knowledge Business Intelligence with SharePoint 2013 and SQL 2012 Course

Big Data Processing: Past, Present and Future

Job Description Senior Consultant (BI)

SQL Server Administrator Introduction - 3 Days Objectives

Maximizing the Data Exploration Capabilities of Power View. Melissa Coates. SQL Saturday Kalamazoo 11/2/2013. BI Architect, BlueGranite

Power BI as a Self-Service BI Platform:

Business Intelligence with Excel Excel new features for reporting and data analysis

How To Write Powerpivot For Excel

Agile BI With SQL Server 2012

Business Benefits From Microsoft SQL Server Business Intelligence Solutions How Can Business Intelligence Help You? PTR Associates Limited

Retail POS Data Analytics Using MS Bi Tools. Business Intelligence White Paper

SharePoint 2010 Performance and Capacity Planning Best Practices

Performance Verbesserung von SAP BW mit SQL Server Columnstore

Implementing Data Models and Reports with Microsoft SQL Server 20466C; 5 Days

SQL Server 2016 New Features!

SQL Server 2012 Performance White Paper

Oracle MulBtenant Customer Success Stories

COURSE SYLLABUS COURSE TITLE:

Mark Bennett. Search and the Virtual Machine

SQL Server +60 MVP

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

SQL 2016 and SQL Azure

IBM Cognos 10: Enhancing query processing performance for IBM Netezza appliances

Release Notes Scribe Adapter for Microsoft Dynamics

In-Memory Data Management for Enterprise Applications

Microsoft Implementing Data Models and Reports with Microsoft SQL Server

MS 50511A The Microsoft Business Intelligence 2010 Stack

BI on Cloud using SQL Server on IaaS

Reporting. Microsoft Dynamics GP enterpri se. Dynamics GP. Christopher Liley. Create and manage business reports with.

Tableau Visual Intelligence Platform Rapid Fire Analytics for Everyone Everywhere

PowerPivot for Advanced Reporting and Dashboards

Sai Phanindra. Summary. Experience. SQL Server, SQL DBA and MSBI SQL School saiphanindrait@gmail.com

Business Intelligence In SAP Environments

Microsoft SQL Business Intelligence Boot Camp

NAV 2013 Roadmap. Tom Taylor

End to End Microsoft BI with SQL 2008 R2 and SharePoint 2010

SQL Server In-Memory by Design. Anu Ganesan August 8, 2014

The Microsoft Business Intelligence 2010 Stack Course 50511A; 5 Days, Instructor-led

SAP HANA SAP s In-Memory Database. Dr. Martin Kittel, SAP HANA Development January 16, 2013

Expert Oracle Exadata

Big Data Analytics with IBM Cognos BI Dynamic Query IBM Redbooks Solution Guide

Transcription:

DirectQuery vs In-Memory in BISM Julie Koesmarno www.mssqlgirl.com Sydney SQL User Group MsSQLGirl.com 1 @MsSQLGirl

About Me 8+ years experience with SQL Server (since SQL Server 2000) MCITP 2008 Past projects: large scale 24/7 Data Integration, Data Management and Data Cleansing system Current project: Data Warehouse and Analysis Services Tabular Model project 2

Agenda Terminology DirectQuery vs In-Memory Hybrid Mode Out of Scope: Sharepoint Integration 3

Abstract The new and flashy Tabular Model for Analysis Services has been highly pitched with the in-memory (VertiPaq) capability allowing for complex queries to run very fast What are the advantages and disadvantages of using in-memory cache to store and query data? Is DirectQuery the answer to address in-memory cache mode limitations? What are the restrictions on DirectQuery tabular model? When can a hybrid mode be used? How would the selected mode can affect the Processing option during Deployment? In this session, all the above questions will be answered with live demos, comparing the two modes and the scenarios that are applicable to them. It also discusses how partition plays an important role in DirectQuery mode and choosing the correct processing mode when deploying a Tabular Model solution. @mssqlgirl 4

Tabular Model Architecture and Solution Terminology v 5

Vertipaq DirectQuery In-Memory Cached xvelocity 6

Tabular Model Architecture Third Party Application Excel Reporting Services Power View Tabular Model DirectQuery In-Memory SQL Server Databases Non SQL Server Databases Files OData Cloud Services 7

Tabular Model Architecture Third Party Application Excel Reporting Services Power View Tabular Model In-Memory SQL Server Databases Non SQL Server Databases Files OData Cloud Services 8

Tabular Model Architecture Third Party Application Reporting Services Power View Tabular Model DirectQuery SQL Server Databases 9

Tabular Model Solutions Authoring (SSDT) Deployment Option Database Properties Connectivity demo 10

DirectQuery vs In-Memory Execution v 11

Querying DAX DirectQuery SQL DAX / MDX In-Memory VertiPaq SE Process Data Access Query Data Sources 12

DirectQuery Security Query DirectQuery SQL Role DirectQuery Impersonation Impersonate Current User Default (Data Source login) Data Source Impersonation Windows User Service Account 13

In-Memory Security Query In-Memory Role Row Level Security VertiPaq SE Process Data Source Impersonation 14

Other Security Consideration? Identity flow in Sharepoint 2010 http://www.sqlpass.org/summit/2011/speakers/callforspeakers/sessiondetail. aspx?sid=2027 BISM file RSDS file Simple Tabular Model Connection String 15

DirectQuery vs In-Memory Design v 16

Formula Compatibility Semantic differences xvelocity in-memory analytics engine (VertiPaq) SQL Server No Calculated Columns in DirectQuery 17

DAX Functions Some DAX Functions are not supported in DirectQuery: No equivalent calculations in relational engine No equivalent SQL expressions Performance of converted expressions E.g. TOTALYTD, SAMEPERIODLASTYEAR More information on BOL: http://msdn.microsoft.com/en-us/library/hh213006.aspx 18

DirectQuery vs In-Memory Administration v 19

Processing Options (In-Memory) Mode Database Table Partition Process Default Process Full Process Data Process Clear Process Defrag Process Add Process Recalc Further reading: http://msdn.microsoft.com/en-us/library/hh758414.aspx 20

Partitioning in DirectQuery One partition in Tabular Model Can take advantage of Partitioning and ColumnStore Index technology on SQL Server 2012 Partitioning / ColumnStore management done at the source database level 21

Partitioning in In-Memory In-Memory can have multiple mutually exclusive partitions To eliminate unnecessary processing and processor load on the AS servers Process C u r r e n t Mar 2012 Feb 2012 Jan 2012 In-Memory Partitions 22

DirectQuery vs In-Memory Pros and Cons v 23

In-Memory - Pros ALL functionality of Tabular Model Calculated Columns, ALL DAX functions Row Level security xvelocity in-memory analytics engine Many choices of client tool Excel, Power View, SSRS, MDX client* Many supported data sources 24

In-Memory - Cons AS requires Memory & CPU resources Caching Processing Querying Diligent Partitioning and Processing Out of date data 25

DirectQuery - Pros Real time access Scalable SQL Server permission SQL Server optimisation Consistency One Partition to manage No processing required 26

DirectQuery - Cons Restricted DAX functions Restricted client tools: PowerView, SSRS No Row Level Security Unless implemented at the Source Database level No Calculated Columns 27

The best of both worlds Hybrid Mode v 28

Tabular Model Solutions DirectQuery Mode On Off Query Mode DirectQuery DirectQuery with In-Memory In-Memory with DirectQuery In-Memory Connection String: DirectQueryMode=DirectQuery DirectQueryMode=In-Memory 29

Which Hybrid Mode? Query Mode DirectQuery with In-Memory In-Memory with DirectQuery Excel Connection String DirectQueryMode = InMemory No need to specify DirectQueryMode PowerView always uses the default Query Mode (i.e. the first bit of the Query Mode) can t change this! SSRS works with both Query Mode and Connection String combinations 30

Partitioning for Hybrid Mode One Partition for DirectQuery Processing Option: Never process this partition Multiple Partitions for In-Memory (No Overlap) C u r r e n t Aug 2012 DirectQuery Partitions Jul 2012 Jun 2012 In-Memory Partitions 31

Implications Inconsistency Data stale data in Cache Calculations semantic differences xvelocity vs SQL Security DirectQuery Design Flexibility at run time / client tools In-Memory (Excel) or DirectQuery (Real time) http://www.mssqlgirl.com/hybrid-mode-in-tabular-bisemantic-model-part-1.html http://www.mssqlgirl.com/hybrid-mode-in-tabular-bisemantic-model-part-2.html 32

Wrap Up v 33

Tabular Model Modes In-Memory Mode (default) DirectQuery Mode DirectQuery only DirectQuery with In-Memory In-Memory with DirectQuery 34

Do I DirectQuery? SQL Server database is optimised Columnstore Index Partitioning Contains all required business rules High Volume Can import non-sql data into one SQL Server database which will be the source 35

Further Reading Cathy Dumas blog http://cathydumas.com/ SQLBI (Marco Russo & Alberto Ferrari) http://www.sqlbi.com/ DAX resources (with links to Tabular Model) http://social.technet.microsoft.com/wiki/contents/articles/1088.da x-resource-center.aspx Julie Koesmarno s blog http://www.mssqlgirl.com 36

Q & A signal@mssqlgirl.com http://www.mssqlgirl.com http://au.linkedin.com/in/juliekoesmarno @mssqlgirl 37

Thank you! v 38

MsSQLGirl.com 39 @mssqlgirl