Exploring Scripting Performance

Objective

After completing this lesson, you will be able to describe the basic principles involved in the technical processing of scripts in SAP Analytics Cloud stories and its impact on performance.

Script Processing

In this lesson, we will explore script processing in order to gain an understanding of how the Main and SandboxWorker interact when a script is processed in SAP Analytics Cloud.

Summary

Script optimization is typically required when there are frontend performance issues, such as when a story with scripting doesn't perform as well on older or slower laptops but still performs well on more powerful machines.

In general, you should try to minimize the number of interactions between the Main and the SandboxWorker thread. So, whenever you use the same get or set function multiple times, it is an indication that there is something to improve. For example, using a local script variable, which is covered later on in this unit.

In addition, everything that happens in loops is relevant to script performance because it is executed multiple times. It's best practice to keep the array to loop over as small as possible, for example, using a limiting parameter when using the getResultSet API.

Log in to track your progress & complete quizzes