Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
EarlyWatch Reports
Wrap-up
3
Introduction
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
E arlyWatch Reports
Wrap-up
6
Tip 1: MultiProviders and Hints
8
MultiProviders and Parallel Processing (cont.)
Consider deactivating parallel processing for those queries that
are MultiProvider queries and have large result sets (and hints
cannot be used).
With SAP BW 3.0B SP14 (SAP BW 3.1 SP8 and later versions, you can
change the default value of 30,000 rows refer to SAP Notes 629541,
622841, 607164, and 630500.
You can also change the number of dialogs (increase the use of parallel
processing) in RSADMIN by changing the settings for QUERY_MAX_WP_DIAG.
9
What Well Cover
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
E arlyWatch Reports
Wrap-up
10
Aggregates
Aggregates are much less used by the SAP installation base than
training and common sense should dictate.
The interface to build the summary tables (aggregates) are
intuitive and easy to master, but few are taking real advantage of
them.
Even among those that are using aggregates, many have poorly
defined solutions & seldom monitor the usage, thereby limiting the
benefits of this simple technology.
13
Tip 4: Reduce the number of overlapping Proposals
We reduce the overlapping proposals
by optimizing them.
This may reduce the proposals from
99 to less than a dozen
High valuation and high usage is what we are looking for. This indicates high
reduction
of records in aggregate and high benefits to users .
When using 3 rd party query tools and ODBC to query directly into .
the DSO, you are bypassing the OLAP Processor. Therefore, you
cannot accurately performance tune the system using aggregates
(statistics), nor will the 3 rd party tool benefit from aggregates.
14
Activate the aggregate
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
E arlyWatch Reports
Wrap-up
17
Tip 5: Use the Right Read Mode for Queries
1. Read all data (all data is read from a database and stored in user
memory space)
IfIf large
large reports
reports have
have toto be
be produced,
produced, leverage
leverage the
the
BEx
BEx Broadcaster
Broadcaster toto generate
generate batch
batch reports
reports and
and pre-
pre-
deliver
deliver them
them each
each morning
morning toto their
their email,
email, PDF
PDF oror
printer.
printer. 22
Tip 8: Use RSRT Transaction to examine slow queries
P1 of 3
23
Look for patterns and see the performance details
P2 of 3
24
Real Example: This system has issues with the Oracle DB
P3 of 3
Notice
Notice the
the yellow
yellow flag
flag for
for the
the 66 base
base
cubes
cubes inin the
the MultiProvider
MultiProvider and and the
the
yellow
yellow flag
flag for
for the
the 14
14 free
free chars.
chars.
(Note:
(Note:no
nohints
hintswere
wereused
usedininthis
this
MultiProvider,
MultiProvider,which
whichled
ledtotovery
verypoor
poor
performance).
performance).
Distribution Types
You
You can
can increase
increase query
query speed
speed by by
broadcasting
broadcasting the
the query
query result
result ofof commonly
commonly
used
used queries
queries toto the
the cache.
cache.
Users
Users do
do not
not need
need toto execute
execute the
the query
query from
from
the
the database.
database. Instead
Instead thethe result
result isis already
already inin
the
the system
system memory
memory (much
(much faster).
faster).
27
Tip 10: Debugging Queries - RSRT
30
NEW
Tip 12: Restrictive Key Figures & Line Item Dimensions
1. When Restrictive Key Figures (RKF) are included in a query, conditioning is done
for each of them during query execution. This is very time consuming and a high
number of RKFs can seriously hurt query performance
2. Line item dimensions are basically fields that are transaction oriented and
therefore, once flagged as a line item dimension, is actually stored in the fact
table. This results in faster query access (no table join).
Solution: Many of the CKF can be done during data loads & physically
stored in the InfoProvider. This reduces the number of computations and
the query can use simple table reads instead. Do not use total rows
when not required (this require additional processing on the OLAP side).
Problem: Sorting the data in reports with large result sets can be time
consuming.
Solution: Reducing the number of sorts in the default view can improve
the report execution & provide the users with data faster.
Compression tools for CSS and Java scripts can reduce the overall web
template size. If you have thousands of users, this can be a life saver 33
What Well Cover
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs EarlyWatch Reports
Wrap-up
34
Tip 15: Is the Memory Cache Is Set Too Low?
Cache has a system default of 100 MB for local and 200 MB for global
cache. This may be too low for a system that can be optimized via
broadcaster .
Review the settings with the
Basis team and look at the
available hardware.
36
Tip 16: The Right OLAP Cache Persistence Settings
RSR_CACHE_DBS_IX
Optional Cluster table Medium and small result sets RSR_CACHE_DB_IX
37
Monitor Memory Usage Do you need more?
38
What Well Cover
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
E arlyWatch Reports
Wrap-up
39
Tip 17: Avoid Outdated Indexes and Database statistics
e
l e xampl
Rea
For high volume Infocubes, or cubes that have a high number of users, the
percentage used to build the DB stats can be increased from the default
10% to 20%. This may yield more accurate query routing and better query
performance (consider this especially for cubes with old data partitioned)
Tip 18: Avoid replicating the transaction system in SAP
BI
It is tempting to load cross-reference tables and do lookups inside SAP BI instead
of extending extractors. This creates DSOs that cannot be queried efficiently
without many table joins. In this example, of all DSOs contains less than 9
fields, & six have less than 4.
1.SAP_ANALYZE_ALL_INFOCUBES
2.ANALYZE_RSZ_TABLES
3.SAP_INFOCUBE_DESIGNS
exa mple
Real
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
EarlyWatch Reports
Wrap-up
43
TIP 19: Use BI Accelerator ASAP
SAP Any
BW tool
SAP BIA is not used when the result set exceeds 3 million records
(max. default). When the result set is less, the data is sent
as one large data package to the application server (need
fast network).
In the next SAP NetWeaver release the BIA will handle more of the
analytics processing such as top-5 products sales which
is currently done in the OLAP analytical engine.
Performance is measured
in terms of:
1.BIA index creation time
2.Multi-user throughput per hr.
3.Average report response time
4.Average number of records
touched by each report.
The BIA should be sized for critical applications. Most companies use
BIA only for Production, while others have a complete landscape 47
BIA is becoming mainstream
Some of SAP reference clients
BIA is no longer
something exotic.
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
EarlyWatch Reports
Wrap-up
49
Tip 20: SAP Solutions Manager - EarlyWatch Reports Are Great!
InInaa24-hour
24-houroperational
operationalsystems
systems
due
due to time-zones, you willhave
to time-zones, you will have
less
lesstime
timetotoreact
reactand
andfix
fixissues.
issues.
Therefore,
Therefore,early
earlydetection
detectionofof
system
systemissues
issuesare
arecritical
criticaltotothe
the
success of a global project.
success of a global project.
51
EarlyWatch Reports Finds Oracle fixes
In this real example, we can the EarlyWatch report identified that the
system was several Oracle notes are behind that needed to be applied
to optimize DB performance.
e
l e xampl
Rea
52
EarlyWatch Reports Finds Backup Problems
In this real
example, the
EarlyWatch report
identified that there
were no valid
backups for almost
one month.
e
l exampl
Rea
53
What Well Cover
Introduction
Performance Issues & Tips
MultiProviders and Partitioning
Aggregates
Query Design & Caching
Hardware & Servers
Designing for Performance
InfoCubes and DSOs
BI- Accelerator
Sizing and Implementation
Management and Costs
EarlyWatch Reports
Wrap-up
54
7 Key Points to Take Home
Use best practices for query design before you start massive hardware
performance tuning efforts.
Plan for growth what is the plan when you have 200,500, 1000+ users?
Monitor the system usage- do you need more app servers, memory, HW?
If you are building an Enterprise Data Warehouse, plan and budget for a
BIA installation.
EarlyWatch reports are a tool to live (and die) by. Use the report before
you have performance issues.
55
Resources
Dr. Bjarne Berg's web page -- 75+ presentations, tutorials & articles http://csc-
studentweb.lrc.edu/swp/Berg/BB_index_main.htm
SAP SDN Community web page for Business Intelligence Performance Tuning
https://www.sdn.sap.com/irj/sdn/bi-performance-tuning