Pages

Wednesday, 29 January 2014

BW Query Performance

1. What kind of tools are available to monitor the overall Query Performance?

Answer:
1. BW Statistics
2.BW Workload Analysis in ST03N (Use Export Mode!)
3.Content of Table RSDDSTAT

2. Do I have to do something to enable such tools?

Answer:
Yes, you need to turn on the BW Statistics:
  RSA1, choose Tools -> BW statistics for InfoCubes
  (Choose OLAP and WHM for your relevant Cubes)
                                                                       
3. What kinds of tools are available to analyze a specific query in detail?

Answer:
1. Transaction RSRT
2. Transaction RSRTRACE

4.  Do I have a overall query performance problem?

Answer:
Use ST03N -> BW System load values to recognize the problem. Use the number given in table 'Reporting - InfoCubes:Share of total time (s)' to check if one of the columns %OLAP, %DB, %Front-end shows a high number in all InfoCubes.
You need to run ST03N in expert mode to get these values

5. What can I do if the database proportion is high for all queries?

Answer:
Check:
1. If the database statistic strategy is set up properly for your DB platform 
  (above all for the BW specific tables)
2. If database parameter set up accords with SAP Notes and SAP Services (EarlyWatch)
3. If Buffers, I/O, CPU, memory on the database server are exhausted?
4. If Cube compression is used regularly
5. If Database partitioning is used (not available on all DB platforms)

6. What can I do if the OLAP proportion is high for all queries?

Answer:
Check:
1. If the CPUs on the application server are exhausted
2. If the SAP R/3 memory set up is done properly (use TX ST02 to find bottlenecks)
3. If the read mode of the queries is unfavourable (RSRREPDIR, RSDDSTAT, Customizing default)

7. What can I do if the client proportion is high for all queries?

Answer:
Check whether most of your clients are connected via a WAN Connection and the amount of data which is transferred is rather high.

8. Where can i get specific run-time information for one query?

Answer:
1.Again you can use ST03N -> BW System Load
2. Depending on the time frame you select, you get historical data or current data.
3. To get to a specific query you need to drill down using the InfoCube name
4. Use Aggregation Query to get more runtime information about a single query. Use tab All data to get to the details. (DB, OLAP, and Frontend time, plus Select/ Transferred records, plus number of cells and formats)
                                                                     
9. What kind of query performance problems can I recognize using ST03N values for a specific query?

Answer:
(Use Details to get the runtime segments)
1. High Database Runtime
2. High OLAP Runtime
3. High Frontend Runtime

10.What can I do if a query has a high database run-time

Answer:
1. Check if an aggregate is suitable (use All data to get values "selected records to transferred records", a high number here would be an indicator for query performance improvement using an aggregate)
2. Check if database statistics are update to data for the Cube/Aggregate, use TX RSRV output (use database check for statistics and indexes)
3. Check if the read mode of the query is unfavourable - Recommended (H)

11. What can I do if a query has a high OLAP runtime?

Answer:
1. Check if a high number of Cells transferred to the OLAP (use "All data" to get value "No. of Cells")
2. Use RSRT technical Information to check if any extra OLAP-processing is necessary (Stock Query, Exception Aggregation, Calc. before Aggregation, Virtual Char. Key Figures, Attributes in Calculated
  Key Figs, Time-dependent Currency Translation) together with a high number of records transferred.
3. Check if a user exit Usage is involved in the OLAP runtime?
4. Check if large hierarchies are used and the entry hierarchy level is as deep as possible. This limits the levels of the hierarchy that must be processed. Use SE16 on the inclusion tables and use the List of Value feature on the column successor and predecessor to see which entry level of the hierarchy is used.
- Check if a proper index on the inclusion table exists

12. What can I do if a query has a high frontend runtime?

Answer:
1.Check if a very high number of cells and formatting are transferred to the Frontend ( use "All data" to get value "No. of Cells") which cause high network and frontend (processing) runtime.
2. Check if frontend PC are within the recommendation (RAM, CPU Mhz)
3. Check if the bandwidth for WAN connection is sufficient 

No comments:

Post a Comment