How to Isolate a Performance Issue in SAC Stories?
In this blog, I will be giving a review about how we isolate a performance issue by following SAP’s best practice in combination of our experience in SAP Analytics Cloud Stories.
There are many factors in SAP Analytics Cloud (SAC) that might cause performance issues, where should we start and how should we isolate the problem?
- Browser and Network
Based on our experience, the recommended browser of SAP Analytics Cloud is Google Chrome latest version. If your screen is running slow in Internet Explorer, New Microsoft Edge, Safari, etc. please make sure to use the latest version or switch to Google Chrome for best experience. Test the screen with Incognito Mode. You may also want to use task manager to check the local memory and CPU usage. Switching to a different network might help identify the issue caused by local network.
- Backend Connections
HANA – If your story is connecting to a HANA model, please work with HANA developers to optimize the calculation view.
- Use aggregation before calculation
- Filter data as early as possible and hide unused dimensions/measures in the view.
- Run performance analysis mode for the calculation view in HANA
BW Queries – If your story is connecting to a BW query, please make sure your BW query is efficient
- Reduce unused dimensions and hide key figures can be shown
- Within structures, filter starts with the highest level first
- Within structures, use user exit variables to calculate things like QTD, YTD
- Inside SAP Analytics Cloud
- Avoid Exception Aggregation in the model if necessary
- Depending on the use case, our recommended approach is to consider creating powerful calculations in the backend first then in SAC model.
Performance-Wise: Complex calculations in the backend > calculations in the model > calculations in the story
- Check if you are using canvas instead of responsive pages. Responsive pages are better especially when you have the future need to view story content in mobile.
- Check if you have any large size of image in the story, if so, please consider the following: SVG > PNG > JPG image file
- Be mindful of using linked dimensions in SAC to create blended charts or display data from multiple models. Blending models in SAP Analytics Cloud is recommended when you have a small data set. If your plan is to blend big size data from two different sources, please consider joining data in your backend system.
- If your story is connecting to HANA, please make sure to enable Query Batching under Query Settings on Edit mode.(Source: SAP Analytics Cloud Query Settings Window)
- If your story is connecting to BW, please make sure to enable Query Batching under Query Settings on Edit mode.(Source: SAP Analytics Cloud Query Settings Window)
- 6. Restricted Measure
Restricted measure is a smart choice when you need to create a measure that is limited to a certain dimension selection (Ex. Revenue for Category named Orange Juice). But please note that a restriction cannot push down to the query level like a filter. Therefore, based on a specific use case, please identify the need between applying restricted measures and story filters.
In SAC Content Folder:
In late 2020, SAP Analytics Cloud has rolled out a SAC Content folder for system and BI admins. This content folder includes one sample story and three models about performance.
(Source: SAP Analytics Cloud )
Now system administrators can monitor content performance via the Statistics and Analysis story or build a customized story based on these models.
With this blog we have gone through the possible factors to isolate a performance issue. Of course, these are not the only causes but enough clues for you to start. If you are interested in learning more, please do not hesitate to reach out.