Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Agenda
Overview
Building the Aggregates
Test Results #1
Tuning TimesTen
Test Results #2
Conclusion
Overview
Overview
Aim of Presentation
Since the release of TimesTen for Exalytics, many rounds of
enhancements have been made to:
Improve the performance of TimesTen analytical queries
Enhance Oracle BI 11g to generate efficient TimesTen structures and
queries
Overview
Architecture
Overview
Building the Aggregates Simple !
Overview
Implement Aggregates
nqcmd -d AnalyticsWeb -u weblogic -p welcome1 -s TTagg.sql
Test Results #1
Test Results 1
Demonstration
We will now demonstrate how the TimesTen aggregates perform using the default
settings
Each test will compare against an Oracle Database running on the same Exalytics
server (with Auto DOP Typically 2 Px threads)
A fact table with 24M records is used for the tests, each test has slightly different
filters so that an increasing number of records are scanned during each test
Do you think TimesTen will be faster?
Tuning TimesTen
10
Tuning TimesTen
1) RangeIndexType=0
IMPORTANT: This parameter takes effect only when you connect to the database for the very first
time - so you must apply the parameter when you first create the database (and before anyone
connects to the database)
11
Tuning TimesTen
2) Use Most Appropriate Data Types
TimeTen provides specific datatypes that can reduce data volumes when
compared to Oracle DB equivalent
12
Tuning TimesTen
3) RAM Policy
By default TT may not always load your data into memory.
For BI we are looking to utilize in-memory for performance
13
Tuning TimesTen
4) Compression
14
Tuning TimesTen
4) Compression
15
Tuning TimesTen
5) Index Advisor
Now provide the SQL to the advisor (obtained from BI Session logs)
WITH
SAWITH0 AS (select sum(T580.Sales_Valu00000060) as c1, sum(T580.Sales_Qty0000005F) as c2,
count(T580.Z_Orders00000059) as c3,
T550.Quarter0000004F as c4,
T550.Year00000051 as c5
from ...
Follow up with :
all ttindexadvicecaptureend(0);
call ttindexadvicecaptureoutput(0);
16
Tuning TimesTen
5) Index Advisor
Output
17
Tuning TimesTen
5) Index Advisor
It is important to review the DDL from OBIEE and switch to HASH indexes
for any columns used in equality joins
18
Tuning TimesTen
5) Index Advisor
By default TT will size the index based on the current size of the table
An empty table will therefore give a non-optimal index size
Demonstration
19
Tuning TimesTen
6) Analyze Tables
20
Tuning TimesTen
7) Execute on Connect
Oracle BI now automatically runs 4 statements to alter query
optimisation settings to improve analytical performance:
21
Test Results #2
22
Test Results 2
Demonstration
For each query, which one do you think will be the fastest???
23
Test Results 3
Database Parallelism
Up until now, the Oracle Database has had Parallel Query enabled with 2 parallel
threads
What happens if we increase this to 4 or 8 parallel threads?
Will it make much difference???
24
Conclusion
25
Conclusion
Interesting Results?
Our tests show that TimesTen can compete with and even beat the Oracle
Database with Parallel Query enabled (with low DOP)
Remember Oracle Times Ten is 1/3 licence cost of Oracle EE ($350 v $950)
26
27