Professional Documents
Culture Documents
Sap Hana
Sap Hana
...
SAP HANA
Slide 2
2011
Slide 3
2011
Slide 4
2011
Slide 5
2011
Slide 6
2011
2011
Slide 8
2011
Slide 9
2011
Slide 10
2011
Slide 11
2011
Slide 12
2011
Slide 13
2011
Slide 14
2011
Slide 15
2011
Slide 16
2011
Slide 17
2011
Slide 18
2011
Slide 19
2011
Slide 20
2011
Slide 21
2011
Row Store
Row Store - One of the relational engines
Interfaced from calculation / execution layer
Pure in-memory store
Persistence managed in persistence layer
Slide 22
2011
Slide 23
2011
Column Store
Column Store - One of the relational engines
Interfaced from calculation / execution layer
Pure in-memory store
Persistence managed in persistence layer
Optimized for high performance of read operation
Good performance of write operations
Efficient data compression
Slide 24
2011
Slide 25
2011
Persistence Layer
Why Does An In-memory Database Need A Persistence Layer?
Main Memory is volatile. What happens upon
Database restart?
Power outage?
...
Data needs to be stored in a non-volatile way
Backup and restore
2011
Slide 27
2011
Slide 28
2011
Views
Attribute Views i.e. Dimensions
Analytic Views i.e. Cubes
Calculation Views similar to virtual provider with services concept in BW
Hierarchies
Leveled based on multiple attributes
Parent-child hierarchy
Analytic Privilege security object
Slide 29
2011
Slide 30
2011
Slide 31
2011
Slide 32
2011
Slide 33
2011
Attribute Views
Attribute View
What is an Attribute View?
Attributes add context to data.
Attributes are modeled using Attribute Views.
Can be regarded as Master Data tables
Can be linked to fact tables in Analytical Views
A measure e.g. weight can be defined as an attribute.
Table Joins and Properties
Join Types
leftOuter, rightOuter,
fullOuter, textTable
Cardinality
1:1
N:1
1:N
Language Column
Slide 34
2011
Slide 35
2011
Slide 36
2011
Slide 37
2011
Slide 38
2011
Slide 39
2011
Slide 40
2011
Slide 41
2011
Slide 42
2011
Analytical Views
Analytical View
An Analytical View can be regarded as a cube.
Analytical Views does not store any data.
The data is stored in column store or table
view based on the Analytical View Structure.
Star schema consist of one fact table
containing the key figures
Dimensions describe the key figures and
enrich the data
Slicing and dicing is a feature whereby users
can take out (slicing) a specific set of data
and view (dicing) the slices from different
viewpoints
Cardinality in star schemas is generally
N:1 fact to dimension
Joins in star schemas are generally
Left Outer Joins
Analytical models are highly optimized
for aggregating mass data
Slide 43
2011
Slide 44
2011
Slide 45
2011
Slide 46
2011
Slide 47
2011
Slide 48
2011
Slide 49
2011
Slide 50
2011
Slide 51
2011
Slide 52
2011
Slide 53
2011
Slide 54
2011
Slide 55
2011
Calculation View
Several options available
Use the Graphical Modeler
Write SQL Script and use CE Functions
Write SQL Script and using SQL
Suggested option
= Graphical Modeler
No SQL or SQL Script knowledge
required
Built-in Union Constant support
Graphical &
SQL Script + CE Functions
Result in similar performance gains
(e.g. Field pruning, Parallelization,
join ommision)
Standard SQL
Does not provide field pruning and can
be less optimized.
Useful for POCs and rapid prototyping
Slide 56
2011
Slide 57
2011
Slide 58
2011
Slide 59
2011
Slide 60
2011
Slide 61
2011
Slide 62
2011
Slide 63
2011
Application libraries
SAP HANA In-Memory Computing Engine offers various algorithms for inmemory computing.
It provides several application libraries for developers, partners, and
customers who develop applications that run on SAP HANA.
The libraries are linked dynamically to the SAP HANA database kernel.
Slide 64
2011
Slide 65
2011
Description
Converts a future stream of cash flow to constant prices. It calculates the inflated value of
today's money.
Forecast
Combines actual and forecast data to produce a rolling forecast. Eliminates scripting of feeds.
Future
Calculates the closing balance of an account given the start balance and the conditions under
which the account runs.
Calculates the amount of cash you must receive in a future period to compensate for inflation.
...
...
...
...
Slide 66
2011
Formula
Where,
Input tables
Name
Direction
Number of
Columns
Column Type
Column Name
Description
Prime
Input Table
Double
PRIME
Prime/base value
Time
Input Table
String
TIME
Rate
Input Table
Double
RATE
Discount rate
APR
Input Table
Double
APR
Switchover
Input Table
Double
SWITCHOVER
Switchover date
Input Table
String
SWITCOVERDATE
Output tables
Name
Direction
Number of Columns
Column Type
Column Name
Description
Result
Output Table
DOUBLE
RESULT
Constant value
Slide 67
2011
2011
The algorithms in PAL were carefully selected based on the following criteria:
The algorithms are needed for SAP HANA applications.
The algorithms are the most commonly used based on market surveys (e.g. Rexer Analytics and KDnuggets polls).
The algorithms are generally available in other database products.
Application functions are like database procedures written in C++ and called from outside to perform data intensive and
complex operations
Slide 69
2011
Slide 70
2011