Date post: | 09-Apr-2018 |
Category: |
Documents |
Upload: | kirankodidela5422 |
View: | 218 times |
Download: | 0 times |
of 29
8/8/2019 Performance Tuning - Aggregates
1/29
SAP America Know How Conference Call Jujy 6, 2000 1
BW Performance Tuning:
Aggregates
Deborah BoardBW RIG USA
Know How Conference Call
July 6, 2000
8/8/2019 Performance Tuning - Aggregates
2/29
SAP America Know How Conference Call Jujy 6, 2000 2
Agenda
Introduction
Definition of Aggregates
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
8/8/2019 Performance Tuning - Aggregates
3/29
SAP America Know How Conference Call Jujy 6, 2000 3
Agenda
Introduction
Definition of Aggregates
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
8/8/2019 Performance Tuning - Aggregates
4/29
SAP America Know How Conference Call Jujy 6, 2000 4
BW Performance Issues
Indexes
BW Statistics
AggregatesDB Statistics
Data Modeling
Partitioning
DB Tuning
Query Optimization
BWDatabase
8/8/2019 Performance Tuning - Aggregates
5/29
SAP America Know How Conference Call Jujy 6, 2000 5
Agenda
Introduction
Definition of an Aggregate
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
8/8/2019 Performance Tuning - Aggregates
6/29
SAP America Know How Conference Call Jujy 6, 2000 6
An InfoCube's Star Schema
(1) Fact Table
(2) Dimensions
(3) Characteristic
month
year
day
city regioncountry
productproductgroup
sales person
division
distribution channel
sales organizationTimeD
imen
sion
Product Dimension
Region Dimension
Sales
OrgDimens
ion
8/8/2019 Performance Tuning - Aggregates
7/29 SAP America Know How Conference Call Jujy 6, 2000 7
A Typical Query
(1) Fact Table
(2) Dimensions
(3) Characteristic
month
region
productgroup
country = 'US' or 'CA'
year = 1999relevant facts
8/8/2019 Performance Tuning - Aggregates
8/29 SAP America Know How Conference Call Jujy 6, 2000 8
A Suitable Aggregate
(1) Fact Table
(2) Dimensions
(3) Characteristic
month
year
regioncountry
productproductgroup
TimeD
imen
sion
Product Dimension
Region Dimension
8/8/2019 Performance Tuning - Aggregates
9/29 SAP America Know How Conference Call Jujy 6, 2000 9
Aggregates ...
... are like InfoCubes,
... summarize ("aggregate") data of the originating InfoCube,
... contain redundant information, but
... accelerate the access to that information,
... are for InfoCubes what DB indexes are for DB tables,
... are performance-enhancing features.
8/8/2019 Performance Tuning - Aggregates
10/29 SAP America Know How Conference Call Jujy 6, 2000 10
Aggregates - Goal
Reduced retrieval
Cost
Cost of aggregate
maintenance
The goal of aggregates is to balance
8/8/2019 Performance Tuning - Aggregates
11/29 SAP America Know How Conference Call Jujy 6, 2000 11
Agenda
Introduction
Definition of an Aggregate
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
8/8/2019 Performance Tuning - Aggregates
12/29 SAP America Know How Conference Call Jujy 6, 2000 12
Aggregates - Examples
Defining Aggregates
*
HF
space
group according to characteristic or attribute value
group according to nodes of a hierarchy level
filter according to fixed value
do not use characteristic or attribute in aggregate
8/8/2019 Performance Tuning - Aggregates
13/29
SAP America Know How Conference Call Jujy 6, 2000 13
Aggregates - Example
Country Customer Sales
USA
GermanyUSA
Austria
Austria
Germany
USA
Buggy Soft Inc.
Ocean NetworksFunny Duds Inc.
Ocean Networks
Thor Industries
Funny Duds Inc.
Buggy Soft Inc.
10
155
10
10
20
25
Fact Table: Sales DataFact Table: Sales Data Aggregate Tables: Sales DataAggregate Tables: Sales Data
Country *
Customer Space
Country *
Customer Space
Country Sales
40
35
20
USA
Germany
Austria
8/8/2019 Performance Tuning - Aggregates
14/29
SAP America Know How Conference Call Jujy 6, 2000 14
Aggregates - Example Using Filters
Country Customer Sales
USA
GermanyUSA
Austria
Austria
Germany
USA
Buggy Soft Inc.
Ocean NetworksFunny Duds Inc.
Ocean Networks
Thor Industries
Funny Duds Inc.
Buggy Soft Inc.
10
155
10
10
20
25
Fact Table: Sales DataFact Table: Sales Data Aggregate Tables: Sales DataAggregate Tables: Sales Data
Country F, Germany
Customer *
Country F, Germany
Customer *
Country Sales
15
20
Germany
Germany
Customer
Ocean Networks
Funny Duds Inc.
8/8/2019 Performance Tuning - Aggregates
15/29
SAP America Know How Conference Call Jujy 6, 2000 15
Aggregates - Example Using Master Data
Country Customer Sales
USA
GermanyUSA
Austria
Austria
Germany
USA
Buggy Soft Inc.
Ocean NetworksFunny Duds Inc.
Ocean Networks
Thor Industries
Funny Duds Inc.
Buggy Soft Inc.
10
155
10
10
20
25
Fact Table: Sales DataFact Table: Sales Data Aggregate Tables: Sales DataAggregate Tables: Sales Data
Country Space
Industry *
Country Space
Industry *
Industry Sales
60
25
10
Technology
Consumer Products
Chemical
Technology
Consumer Products
Technology
Chemical
IndustryCustomer
Buggy Soft Inc.
Funny Duds Inc.
Ocean Networks
Thor Industries
Master Data Table: CustomerMaster Data Table: Customer
8/8/2019 Performance Tuning - Aggregates
16/29
SAP America Know How Conference Call Jujy 6, 2000 16
Aggregates - Example Using Hierarchies
Country Customer Sales
USA
Germany
USAAustria
Austria
Germany
USA
Buggy Soft Inc.
Ocean Networks
Funny Duds Inc.Ocean Networks
Thor Industries
Funny Duds Inc.
Buggy Soft Inc.
10
15
510
10
20
25
Fact Table: Sales DataFact Table: Sales Data Aggregate Tables: Sales DataAggregate Tables: Sales Data
Country H, Level 2
Customer Space
Country H, Level 2
Customer Space
Country Sales
40
55
America
Europe
AllAll
EuropeEurope AmericaAmerica
GermanyGermany AustriaAustria USAUSA
Hierarchy for CountryHierarchy for Country
8/8/2019 Performance Tuning - Aggregates
17/29
SAP America Know How Conference Call Jujy 6, 2000 17
Aggregates - Facts in SAP BW
on navigational attributes of time-
dependent master data
on hierarchy levels where the
structure is time-dependent
for non BasicCubes
Aggregatescan be created
Aggregates
can be createdAggregatescannot be created
Aggregates
cannot be created
on dimension characteristics
on navigational attributes
on hierarchy levels
8/8/2019 Performance Tuning - Aggregates
18/29
SAP America Know How Conference Call Jujy 6, 2000 18
Aggregates - Maintenance of
Switch
on/off
Switch
on/off
Show aggregate
hierarchy
Show aggregate
hierarchy
BDSBDS
TransportTransportActivate &
Fill
Activate &
Fill
unsaved
changes
unsaved
changes
Valuation of
the aggregate
Valuation of
the aggregate
8/8/2019 Performance Tuning - Aggregates
19/29
SAP America Know How Conference Call Jujy 6, 2000 19
Aggregates - Hierarchy of
8/8/2019 Performance Tuning - Aggregates
20/29
SAP America Know How Conference Call Jujy 6, 2000 20
Agenda
Introduction
Definition of an Aggregate
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
8/8/2019 Performance Tuning - Aggregates
21/29
SAP America Know How Conference Call Jujy 6, 2000 21
Aggregates - Proposals
Suggest useful
aggregates
Suggest useful
aggregates
Optimize
proposals
Optimize
proposals
8/8/2019 Performance Tuning - Aggregates
22/29
SAP America Know How Conference Call Jujy 6, 2000 22
Aggregates - Proposals
Gather information about end-user
query requirements and drill-down
patterns
Aggregates are suggested basedon query design
Execute the query multiple times
using realistic drill-down scenarios
Allow time for users to execute
queries and collect SAP BW-
Statistics
Aggregates can be suggestedbased on SAP BW-Statistics
Analyze the use of aggregates
Modify aggregates for optimization
Before aggregate creationBefore aggregate creation After aggregate creationAfter aggregate creation
8/8/2019 Performance Tuning - Aggregates
23/29
SAP America Know How Conference Call Jujy 6, 2000 23
Aggregates - Proposals
8/8/2019 Performance Tuning - Aggregates
24/29
SAP America Know How Conference Call Jujy 6, 2000 24
Aggregates - Rules for Efficiency
Define the aggregate on the required level of detail and
afterwards add all characteristics which can be derived from thecomponent of the aggregate (business logic).
For example, if 0Calmonth is a component of the aggregate, you
should add 0Calquarter and 0Calyear as well.
You should also add 0Fiscper if the Fiscal periods correspond
to the month
Avoid placing the characteristic and its navigational attributes
in the same aggregate
Avoid aggregates which are as large as the InfoCube itself
8/8/2019 Performance Tuning - Aggregates
25/29
SAP America Know How Conference Call Jujy 6, 2000 25
Aggregates - Size
Size of aggregate: 5 to 10% of
the fact table may be acceptable
For frequent changes to master data
or hierarchy structures: size of
aggregate < 1% of the InfoCube /
Basis aggregate
For infrequent changes: larger sizes
are OK
Aggregates w/ Navigational
Attributes or Hierarchies
Aggregates w/ Navigational
Attributes or Hierarchies
Aggregates w/o Navigational
Attributes or Hierarchies
Aggregates w/o Navigational
Attributes or Hierarchies
8/8/2019 Performance Tuning - Aggregates
26/29
SAP America Know How Conference Call Jujy 6, 2000 26
Agenda
Introduction
Definition of an Aggregate
Creating Aggregates
Finding Effective Aggregates
Analyzing Queries
Q A l
8/8/2019 Performance Tuning - Aggregates
27/29
SAP America Know How Conference Call Jujy 6, 2000 27
Query - Analyze
Query-Analyzing Tools:
Query monitor (Transaction RSRT > execute & debug)
Trace-Tool (Transaction RSRTRACE > all logs >
double click on the protocol of interest > DB debugging)
Q A l
8/8/2019 Performance Tuning - Aggregates
28/29
SAP America Know How Conference Call Jujy 6, 2000 28
Query - Analyze
Q SAP BW St ti ti
8/8/2019 Performance Tuning - Aggregates
29/29
Query - SAP BW Statistics
Meaning of the most important fields of the SAP BW Statistic
- QDBSEL: Number of selected Records on the DB- QDBTRANS: Number of Records transferred to the server
- QTIMEDB: Time in Seconds on the DB
all fields are explained in detail in OSS note 130696
If the quotient of QDBSEL divided by QDBTRANS is greater
than 10 and if the QTIMEDB is too high, you should thinkabout an aggregate
Switch on/off certain aggregates to see whether they are
efficient or not