Professional Documents
Culture Documents
REPORTS
AUF
ANALYTICS
ONOLTP
OLTPDATEN
DATA
OUT
REPORTS
OF 10 QUERIES
AUF OLTP
DONT
DATEN
NEED SQL TUNING
3
REDUCED
VerzichtETL
aufFLOW
ETL
Agenda
Swiss Mobiliar
Switzerlands most personal insurer
Growth Mobiliar
Market Growth
in Mio CHF. Source: Schweizerischer Versicherungsverband
The Speaker
Thomas Baumann
of Technology, Zurich
tistics
Data
Management Systems and Performance since 1992
nal conferences
Mobiliar
dedicated to performance since 1963
also produces this search result:
Agenda
10
Analytical
(OLAP)
Data Mart
Decision Support
Data
Warehouse
Cross
Information
Systems
Operational
(OLTP)
Business
Intelligence
Access
Information
Systems
OLTP
Core
Information
Systems
OLTP Analytics
Scope
Analytical
(OLAP)
Data Mart
Decision Support
Data
Warehouse
Cross
Information
Systems
Operational
(OLTP)
Business
Intelligence
Access
Information
Systems
OLTP
Core
Information
Systems
OLTP Analytics
Scope
Architecture 2014
IDAA (IBM DB2 Analytics Accelerator) Value Delivery
SQL Query
(to DB2)
Result
In-Memory
Set Similar design patterns for Oracle Database
For applications which dont require transactionally consistent data, and can
DB2similar
zOS results
IBMas well?
Are there
(Mainframe) Netezza
Design Patterns
Column oriented data storage
1)
Major Results
Increased OLAP query performance
Data replication close to real time based on 100 times faster in average
log records, not transactionally consistent Faster inserts on DB2 and higher
Query Re-Routing decided by optimizer,
scalability
transparent for application
Due to elimination of most indexes
No need for indexes
Short timeframe between data ingress
and analysis
Very high compression rate
13
Tuning Knobs:
Data distribution among nodes
15
47.5
47
46.5
HQ
46
45.5
16
which car makes do also have many other contracts at Swiss Mobiliar?
10000
1000
100
0 AND YEAR(PAR.C99992)
10
AND YEAR(VER.C99995) =
1
DB2
IDAA
17
No. of new-born
children in same
area and year
Agenda
19
The PoC (Beta-test) of Oracle 12c Database In-Memory shall prove that
comparable, if not better, response times might be achieved for the same data
20
So far: Data organized in rows, data loaded into memory at first usage
New: Additional: Data organized in columns, permanently stored in memory
automated, near real-time
replication
designed for
transactions
Memory
Memory
Memory
Memory
data
row-oriented
row-oriented
data
column-oriented
designed for
analytics
21
22
23
Agenda
24
The Speaker
Paolo Kreth
y
atics at Genoa University
e 1998 Oracle 8i Object Relational Database
cal Lead @Mobi
Coup
25
CREATETABLETEO_TBENPRO
(C43087CHAR(30)DEFAULTONNULL'
NOTNULL,
C.NUMBER(30)DEFAULTONNULL0
NOTNULL,
.)
No runtime errors.
26
27
10.00
1.00
Oracle native
0.10
Oracle IM
Column Store
194.21
44.7
28
24 Cores
24 Cores
72 GB RAM
72 GB RAM
Netezza V 7.02
Netezza V 7.02
IDAA V3
IDAA V3
16 Cores
16 Cores
384 GB RAM
384 GB RAM
no attache PCI Flash Disks
no attache PCI Flash Disks
OS: RedHat 6.4
OS: RedHat 6.4
Oracle 12.1.0.2 Beta 3
Oracle 12.1.0.2 Beta 3
29
10.00
IDAA
1.00
Oracle
IM
Column Store
0.10
76.74
ORACLE IM
44.73
30
Data modifications were propagated near real time to the Column Store in our test.
We did not have to load the whole table into memory, we loaded only selected partitions or
even columns.
31
32
Strengths:
It scales very good incrementing the degree of parallelism. Also small degree increments
show big performance improvements.
Read and Filter of large data volumes
Easy administration
You can improve the performance of an application within minutes
Weaknesses:
Sorts of large data volumes is still a bottleneck ( 100+ GB)
Sorts still use temporary tablespace
Proposal to ORACLE:
Temp Segment in Memory for Column store ?
Feedback to Oracle has been provided.
33
Agenda
34
35
Results on MobiliarFIS
Comparison of elapsed times
Query
Elapsed Time(s)
11g
12c
12c InMemory
949
183
135
32
29
274
306
0,3
270
310
0,053
289
245
0,5
0,045
0,018
1815
~ 1073
~ 140
~ 1.7
~ 13
Sum
Factor
36
Resume MobiliarFIS
Summary
The Results from the PoC on Oracle 12c
"In-Memory Column Store" showed an improvement of one or two magnitudes.
Typical DWH queries like sums, averages etc. can be improved dramatically .
The assumptions made at the start of the PoC could be confirmed.
Next Steps
MobiliarFis has been migrated on 12.1.0.2 and we are beginning to develop reports which
will benefit from Oracle Database In-Memory.
37
38
Compression
Optimization of PCTFREE parameter
39
Results RICO
Speed Up Oracle 12c (without In-Memory) vs. Oracle 11g
Parallel Degree
Query 1
Query 2
Query 3
Query 4
Query 5
All
3.53
1.82
0.78
2.52
2.32
2.57
2.66
0.94
5.82
2.42
1.63
2.23
2.87
1.06
5.49
2.39
2.44
2.56
2.65
1.40
5.89
1.95
2.70
2.44
16
2.72
1.73
6.41
2.79
2.73
2.75
32
2.69
2.16
7.79
2.74
2.74
2.73
40
Results RICO
Speed Up Oracle 12c In-Memory vs. Oracle 12c
Parallel Degree
Query 1
Query 2
Query 3
Query 4
Query 5
All
108.89
25.31
48.77
38.50
46.12
46.89
138.89
4.66
6.25
51.20
49.80
49.10
261.17
4.81
5.67
88.12
87.58
86.15
280.25
4.28
4.67
154.45
144.61
135.51
16
370.25
3.46
3.40
212.10
233.79
191.44
32
404.91
2.58
0.32
262.35
234.53
130.24
On average the queries were running between 46 and 191 times faster.
41
Results RICO
Both slides combined: Speed Up Oracle 12c In-Memory vs. Oracle 11g
Parallel Degree
Query 1
Query 2
Query 3
Query 4
Query 5
All
384.04
46.16
37.84
96.91
107.03
120.40
370.11
4.39
36.38
124.10
81.15
109.43
750.78
5.13
31.11
210.42
213.33
220.82
743.44
6.00
27.50
301.76
390.77
330.33
16
1007.25
6.00
21.80
591.14
638.32
525.94
32
1087.73
5.58
2.48
717.65
642.95
354.92
On average the queries were running between 109 and 525 times faster.
42
Summary RICO
Rico has been migrated on July on 12.1.0.2
A development environment has been built to test the upgrade and the effects of InMemory
We are using the SQL Performance Analyzer of the Real Application Testing option
to identify improvements and regression
We are involved in the Oracle 12c Reference Program and we are working closely
with Oracle.
Oracle In Memory will be activated after the Mobiliar Software Release by end of
October
43
Agenda
44
31 hours
4h 30min
SQL Tuning
(+1h 30min)
DB In-Memory
45
Thank you!
Thomas Baumann
thomas.baumann@mobi.ch
performance@mobi.ch
Paolo Kreth
paolo.kreth@mobi.ch
dbadm@mobi.ch
46