Professional Documents
Culture Documents
Hana Best Practices PDF
Hana Best Practices PDF
Public
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP's
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.
HANA Views
Calculation Views
are usually build upon Analytical View Attribute View Column Table
Analytic-, Attribute-
Views, and Column
Tables
Complex Calculation
Views demand a
more explicit intent
and control of the
modeled set-based
data flow, i.e. slicing,
aggregation and
filtering of sets as
input to joins, unions
etc.
Usage Scenario
Dynamic hierarchy structures and properties are required
Star-Join Calculation Views (details see following slides)
– Dynamically mapped attributes
To enable consumption
– Remote data structures are registered and referenced as virtual tables
– Virtual tables can also be consumed as data sources within HANA
Calculation Views.
Supported external systems and restrictions are documented in SAP note 1868209
Select Werks, Matnr, Sum(KwMeng) From Sales_Av Select … From Sales_Av Where Select … From Sales_Av Where
Werks = 100 & Matnr = DPC1017 Werks = 1000 & Matnr = DPC1017
Apple 3000000
Banana 4000000
Orange 9000000
CE Functions will try to exploit underlying database engines and will push
filters down, prune columns and omit joins where possible
FIELDA COUNT
Apple 3000000
Banana 4000000
Orange 9000000
SELECT
ORDER
SALESORG
DIVISION
AMOUNT
QUANTITY
Constant Column
GROUP_CONSTANT
FROM VIEW
WHERE
(GROUP_CONSTANT = A AND ORDER IN 1, 2,3)
OR
(GROUP_CONSTANT = B AND ORDER IN 6,7,8)
Standard Union
Optimized join
Where clause(s) filters data-set
before Join occurs
Identify
reproducible
pattern
Split big
models into
smaller parts
Do not build
monolithic
models
• Demands a more explicit intent and control of the modeled set-
based data flow, i.e. slicing, aggregation and filtering of sets as
input to joins, unions etc.
• See SAP Note 1857202 for considerations and constraints • Note, the optimized execution of SQL
Engine- flagged models does allow for
– i.e. Only Tables and Calculation views are supported … etc.
implicit OLAP Engine push-down in
– Improved Join ordering
certain scenarios.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an
SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE
(or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark
information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or
SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing
herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or
release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for
any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-
looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.