The Emergence of Application Logic Compilers Stefan Dipper, SAP BW Development Sept, Public

Similar documents
Optimizing and Modeling SAP Business Analytics for SAP HANA. Iver van de Zand, Business Analytics

Planning Applications Kit - In Memory Planning in Action. Dr. Gerd Schöffl / CSA Technology

Tools, tips, and strategies to optimize BEx query performance for SAP HANA

SAP CERTIFIED APPLICATION ASSOCIATE - SAP HANA 2.0 (SPS01)

This download file shows detailed view for all updates from BW 7.5 SP00 to SP05 released from SAP help portal.

How to Deploy Enterprise Analytics Applications With SAP BW and SAP HANA

KHNC - BW / HANA Mixed Scenarios - News / Added Value / Customer Examples

Proceedings of the IE 2014 International Conference AGILE DATA MODELS

Importing BW Objects

SAP HANA SAP HANA Introduction Description:

20466C - Version: 1. Implementing Data Models and Reports with Microsoft SQL Server

RDP201 SAP BW 7.4 SP5 powered by SAP HANA and further Roadmap

SAP HANA Inspirience Day

C_HANAIMP142

Simplifying your upgrade and consolidation to BW/4HANA. Pravin Gupta (Teklink International Inc.) Bhanu Gupta (Molex LLC)

What s New with SAP NetWeaver BW 7.30 and BW Accelerator 7.20?

Performance Tuning in SAP BI 7.0

SSAS Tabular in the Real World Lessons Learned. by Gerhard Brueckl

RDP203 - Enhanced Support for SAP NetWeaver BW Powered by SAP HANA and Mixed Scenarios. October 2013

SAP HANA as an Accelerator for PLM Processes HANA Basics and Scenarios

SAP Crystal Reports and SAP HANA: Options and Opportunities (0301)

Overview of Reporting in the Business Information Warehouse

Welcome to the topic of SAP HANA modeling views.

Lori Vanourek Product Management SAP NetWeaver / BI. Mike Eacrett SAP NetWeaver RIG - BI

data tiering in BW/4HANA and SAP BW on HANA Update 2017

Combine Native SQL Flexibility with SAP HANA Platform Performance and Tools

IDU0010 ERP,CRM ja DW süsteemid Loeng 5 DW concepts. Enn Õunapuu

Deccansoft Software Services Microsoft Silver Learning Partner. SSAS Syllabus

Data Warehousing & Mining. Data integration. OLTP versus OLAP. CPS 116 Introduction to Database Systems

SAP HANA. Jake Klein/ SVP SAP HANA June, 2013

HFM Extended Analytics Integration with ASO Essbase. Speakers: Brian Marshall Jon Rambeau

The road to BW/4HANA. Wim Van Wuytswinkel & Carl Goossenaerts May 18, 2017

Data Warehousing and Data Mining. Announcements (December 1) Data integration. CPS 116 Introduction to Database Systems

Performance Issue : More than 30 sec to load. Design OK, No complex calculation. 7 tables joined, 500+ millions rows

SAP BW/4HANA the next generation Data Warehouse

In-Memory Data Management Jens Krueger

Purpose and target audience:

SAP NLS Update Roland Kramer, SAP EDW (BW/HANA), SAP SE PBS Customer Information Day, July 1st, 2016

Enterprise Application Integration (EAI) Chapter 4. Method-Level EAI

Performance Optimization

SAMPLE. Preface xi 1 Introducting Microsoft Analysis Services 1

Business Analytics in the Oracle 12.2 Database: Analytic Views. Event: BIWA 2017 Presenter: Dan Vlamis and Cathye Pendley Date: January 31, 2017

SAP BW Archiving with Nearline Storage at Esprit

Data Quality / Data Cleansing in BW

SAP BW and MicroStrategy

COURSE 20466D: IMPLEMENTING DATA MODELS AND REPORTS WITH MICROSOFT SQL SERVER

SQL Server Analysis Services

SAP Business Warehouse powered by SAP HANA

PeopleTools 8.51 PeopleBook: PeopleSoft Cube Manager

Foreword 7. Acknowledgments 9. 1 Evolution and overview The evolution of SAP HANA The evolution of BW 17

SAP- HANA ADMIN. SAP HANA Landscape SAP HANA components, editions scenarios and guides

BusinessObjects XI Integration for SAP Solutions User's Guide

SAP NetWeaver BW Performance on IBM i: Comparing SAP BW Aggregates, IBM i DB2 MQTs and SAP BW Accelerator

Planning Functions and Characteristic Relationship in Integrated Planning

VCETorrent. Reliable exam torrent & valid VCE PDF materials & dumps torrent files

Customer SAP BW/4HANA. Salvador Gimeno 7 December SAP SE or an SAP affiliate company. All rights reserved. Customer

Oracle BI, Oracle OLAP, Essbase The Benefits and Cost of Openness. Collaborate 2008 paper 207. April 14, 2008

OLAP Introduction and Overview

Preface 7. 1 Data warehousing and database technologies 9

Chapter 18: Data Analysis and Mining

SAP IQ - Business Intelligence and vertical data processing with 8 GB RAM or less

Introduction to BW Workspaces and its usage with SAP BusinessObjects BI Tools

CS377: Database Systems Data Warehouse and Data Mining. Li Xiong Department of Mathematics and Computer Science Emory University

Implementing and Maintaining Microsoft SQL Server 2008 Analysis Services

QlikView and SAP HANA Connectivity

This is a simple tutorial that covers the basics of SAP Business Intelligence and how to handle its various other components.

Developing SQL Data Models

Extending the Reach of LSA++ Using New SAP BW 7.40 Artifacts Pravin Gupta, TekLink International Inc. Bhanu Gupta, Molex SESSION CODE: BI2241

Data Mining Concepts & Techniques

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year!

SAP BW 3.5 Enhanced Reporting Capabilities SAP AG

DMM200 SAP Business Warehouse 7.4, SP8 powered by SAP HANA and Roadmap

COGNOS DYNAMIC CUBES: SET TO RETIRE TRANSFORMER? Update: Pros & Cons

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

InfoProviders in SAP NetWeaver BW powered by SAP HANA. Gabor Kovacs Customer Solution Adoption (CSA) May, 2012

Step-by-step data transformation

SAP HANA SPS 08 - What s New? SAP HANA Interactive Education - SHINE (Delta from SPS 07 to SPS 08) SAP HANA Product Management May, 2014

Decision Support Systems aka Analytical Systems

In-Memory Data Management

6 SSIS Expressions SSIS Parameters Usage Control Flow Breakpoints Data Flow Data Viewers

SAP HANA SPS 08 - What s New? SAP HANA Modeling (Delta from SPS 07 to SPS 08) SAP HANA Product Management May, 2014

BW Workspaces Data Cleansing during Flat File Upload

How to get the most out of BW 7.30 on HANA with Analysis Office 1.3? Tobias Kaufmann/Customer Solution Adoption

How to Work with Excel Report and Interactive Analysis

Teradata Aggregate Designer

<Insert Picture Here> Implementing Efficient Essbase ASO Application

Developing SQL Data Models

SAP HANA for Next-Generation Business Applications and Real-Time Analytics

10778A: Implementing Data Models and Reports with Microsoft SQL Server 2012

Data Warehouse and Data Mining

AWS Database Migration Service

Implementing Data Models and Reports with SQL Server 2014

SAP NetWeaver BW 7.3 Practical Guide

Data Analysis and Data Science

Introduction to SAP HANA and what you can build on it. Jan 2013 Balaji Krishna Product Management, SAP HANA Platform

Entscheidungsgrundlagen mit Proof-of-Concept SAP HANA

sqlbi.com 1 Who am I Latest conferences Agenda sqlbi.com

Tasting the Flavors of Analysis Services 2012

SAP BW on HANA Architecture

Transcription:

The Emergence of Application Logic Compilers Stefan Dipper, SAP BW Development Sept, 2013 Public

Agenda What is an application logic compiler? Why stored procedures History Domain specific language - Why SQL is not sufficient 2013 SAP AG. All rights reserved. Public 2

What is an application logic compiler? Application logic is translated/compiled into a format that can be executed in the DB engine Stored Procedure / View Compilation may take place on demand due to specific application logic. Stored procedure code often is only temporary. Because of specific application logic, stored procedure should be written using a domain specific language Application Logic Compiler Application Server Logic DBMS 2013 SAP AG. All rights reserved. Public 3

Why stored procedures? Performance Reduce interaction between Application and DB code to data reduce amount of data transferred between APP and DB aggregate data wherever possible before returning to application avoid mass data manipulation in app server but: single record operations based on user interaction (e.g. maintain customer contact data) are no problem Aggregation delivers biggest performance gain Push down everything aggregation depends on Application Server DBMS 2013 SAP AG. All rights reserved. Public 4

History R/3 Programming model 1992 3 Tier model: 1 DB Server, 1..n application servers, Frontend Avoid load on db server whenever possible Scale-out possible via application servers Special transaction model lets DB run in cheap isolation level Platform independence do not depend on special features of a DBMS Special programming language: ABAP evolved from a reporting language OPEN-SQL (SAPs SQL language abstraction) deeply integrated into ABAP ABAP as a procedural extension to OPEN SQL (similar to PL/SQL), OO came afterwards Frontend App Servers 1... Scale out N DB-Server 2013 SAP AG. All rights reserved. Public 5

History BW 1992 1998 BW (SAPs data warehouse product) introduced platform specific coding on application level, leveraging database-specific features SAP tried to optimize performance in a platformindependent way where appropriate Infocube (Star Schema) rollup Aggregate Cube BW: Aggregate Cubes platform independent BW Aggregates better than DB native technology (materialized views, aggregated summary tables) Application-controlled data flow and application enforced referential integrity on fact data enables cheap delta rollup Use of Parent-Child Hierarchies not possible using native technology Aggregate data level Cube fact data level 2013 SAP AG. All rights reserved. Public 6

History BWA 1992 1998 2001 2005 BWA: Business Warehouse Accelerator, Predecessor of Hana Columnar Storage, Compression, Massive Parallelism Reduction of DB response time & reduction of DB result size based on ability to process restricted key figures ( measures ) -> first time application logic entered DB interface Pseudo-SQL: Select customer_group, SUM( amount in 2004 ), SUM( amount in US ) from cube_a where group by customer group predictible or stable response times 2013 SAP AG. All rights reserved. Public 7

Today: OLAP 1992 1998 2001 2005 today Stored procedure on demand Original Idea: separation of concerns: application semantics in application layer, DBMS agnostic to semantics stored procedure is a data flow graph: nesting of aggregation, formula logic, currency conversion, hierarchy handling But: huge stored procedure code (MBs!!) primitives are too fine granular, so more reusable business logic building blocks needed builds Model Compiler Analytic Engine queries Logic (Calc Model) DBMS User query 2013 SAP AG. All rights reserved. Public 8

Today: In Memory Planning Engine 1992 1998 2001 2005 today Publish the result for other users ( save ) Operations (Simulations, Disaggregations), store resulting delta as plan data Combining plan data (private) and actual data (shared,public) Uses a data flow graph that is interactively built and queried Data flow graph can contain procedural nodes (planning functions) DB Planning interface abstracts the graph from the user. 2013 SAP AG. All rights reserved. Public 9

Domain specific language why SQL is not sufficient Application logic is very customer specific different laws, tax regulations, all leads to generalization Part of customers intellectual property parametrization or even customer exits Structural differences in data models prevent simple functional reuse Example: Hierarchies (parent-child) SQL does not really consider hierarchies Common table expressions allow some processing MDX offers more functionality 2013 SAP AG. All rights reserved. Public 10

Aggregations and Arithmetics Special Aggregation Types (NOP, Median, ) Arithmetics: Application specific calculation rules/ special values null handling, overflows, division by zero, zero, Special data types (decfloat), special handling of rounding, zero, 20 + NULL <> SUM( 20, NULL)? Error in one cell must not break the query Product Group Product Price Soft Drinks Cola 1.50 $/bottle Orange Total 1.50 $/bottle 1.50 $/bottle Beer Becks 2.00 $/bottle Budweiser Total X 1.75 $/bottle Total X 2013 SAP AG. All rights reserved. Public 11

Currencies and Units in Aggregation and Calculation Application deals with units o DB does not know about measure/unit pairs at all o Calculations and aggregations considering units Product specific units cannot be made homogeneous currencies/units are context specific data driven currency conversion at query runtime allows simulations, what if (at constant currency ) Quantity conversion (e.g. for stock reports, logistics, ) Product Group Product Price Quantity Amount Beverages Cola 1.50 $/bottle 5 bottles 7.50 $ Milk 3 $/can 0 cans 0.00 $ Total X 5 bottles 7.50 $ Bread Toast 4.00 $/kg 1 kg 4.00 $ Vegetables Tomatoes 2.00 $/kg 1 kg 2.00 $ Total X * 21.00 $ Total X * 21.00 $ 2013 SAP AG. All rights reserved. Public 12

Thank you