Translate

1707239 - Analyze Query Performance with Statistics Data in RSRT

Symptom
  • A BW query has very long runtime, you want to improve its performance.
  • When you run this BW query in transaction RSRT, the bad performance can be observed.  

Environment
  • BW system
  • Release independent

Reproducing the Issue
1. In transaction RSRT, enter the query name and execute it.
rsrt_exe.jpg
2.  If the query needs variable input, provide the necessary values in the variable screen. Then click 'Execute' button on variable screen to run the query.
3. It takes quite long time to get the query result displayed.

Resolution
1. Execute the query again in transaction RSRT. This time use 'Execute and Debug' button instead.
2. In the debug options popup box, switch on 'Display Statistics Data'. You may also switch on 'Do Not Use Cache'. This will make the query skip OLAP Cache. In this way, you can analyze the query performance with database access or BWA access.
rsrt_debug.jpg
3. If the query needs variable input, provide the necessary values in the variable screen. Then click 'Execute' button on variable screen to run the query.
4. After you get the query result displayed, click the 'Back' Button.
query_result.jpg
 5. You will get the statistics data displayed with different tabs. The first tab refers to 'Frontend/Calculation Layer' data. In the column 'Duration' the runtime for each event is given in seconds. You can sort this column descending to find out the top time consuming events.
frontend_calc_layer.jpg
The most important BEX OLAP Statistics Events are:
  • 3010 'OLAP: Query Gen.': This event measures the time spent to check the query definition and to generate the query if necessary.
  • 4500 Authorization Check Selection: This event measures the time taken to carry out the OLAP authorization check.
  • 9000 Data Manager: This event measures the time spent in the data manager, you can find more detailed data on tab Aggregation Layer.
  • 9010 Total DBTRANS: Total Number of Transported Records
  • 9011 Total DBSEL:   Total Number of Read Records
  • 3110 'OLAP: Data Selection(OLAP_BACK)': This event measures the time taken to sort the data read from Data Manager according to structure element selections or restricted key figures. The calculation of virtual key figures happens here as well.
  • 3200 'OLAP: Data Transfer(RRK_DATA_GET)': In this part, many OLAP features are processed, e.g. exception aggregations, formulas calculation, and the correct number of decimal places for the data cells is determined.
  • 3900 OLAP: Read Texts: Texts are read to sort the data. This event measures the time taken to call the text read.
6. The second tab is about the 'Aggregation Layer'. It gives a list of all SQL/BIA accesses that were executed.
agg_layer.jpg
In the column 'Viewed at' you can see how long it took.
In column 'InfoProvider', 'Basic InfoProvider', 'Aggregate' and 'Table Type', you can see exactly where the data comes from. For a query built on a multiprovider, the column 'Basic InfoProvider' shows its part providers. In column 'Aggregate', you will see a 6 digit aggregate name if the data is from a database aggregate, or you will see a BWA index naming as <cubename>$X if the data is from BWA. Table Type E means, the data is from an E table. E tables contain compressed data of a cube. Table Type F means, the data is from an F table. F tables contain uncompressed data.
In Column 'Records, Selected' and 'Records, Transported', you will see exactly how many records are read and transported from each source.

For the example given here, we can conclude the following facts:
Query is built on multiprovider GL_MP2. It selected 7 records and transported 7 records from E table of aggregate 100993 for part provider GLCUBE2. It selected 1000 records and transported 588 records directly from F table of part provider GLCUBE3. It reads 26 records and transported 12 records from BWA index GLCUBE$X for part provider GLCUBE.
If you identify the performance bottleneck is the long time spent on a certain part provider, you may perform SQL statement analysis as per Note 1681396 andNote 1707301.
7. The third tab 'BWA Access' will show up if the query gets data from BWA. For this example, the time statistics for access GLCUBE$X is listed here.
BWA_layer.jpg

See Also

Keywords
performance, long run time, query, OLAP, DM, Data Manager, bad performance, time consuming, hanging, stuck, slow.


Header Data
Released On05.06.2012 06:24:28
Release StatusReleased to Customer
ComponentBW-BEX-OT-OLAP Analyzing Data
Other Components
BW-BEX-ET Enduser Technology
PriorityNormal
CategoryHow To

Product
Product
Product Version
SAP NetWeaver Business Warehouse
All versions

References
This document refers to:
SAP Knowledge Base Articles
1707301 Query Performance Tuning with SQL Statement Analysis in RSRT
CSS SAP Notes
1548125 Interesting facts about Inventory Cubes
1681396 Query Performance
1475193 Warnings in transaction RSRT -> Technical Info
1151957 Interesting facts about the OLAP Processor/Analytic Engine

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall