ersureshbe
Giga Sage
Giga Sage

Use case:
Numerous factors can contribute to instances experiencing slowness. However, a prevalent cause is the development of non-standard code, which often leads to performance issues. It is essential to identify which segments of code are executing for extended periods and causing these performance challenges. Are there any out-of-the-box capabilities available to assist in this analysis?

 

Solution:
To address the aforementioned use case, ServiceNow offers a feature known as 'Slow Scripts.'

 

ersureshbe_0-1736369765743.png

 

This out-of-the-box capability allows users to identify scripts that require excessive execution time, providing details such as the script name and its location—whether it is a business rule, client script, script include, etc. Additionally, the average execution time in milliseconds is recorded in the corresponding table. The information provided facilitates a thorough analysis of your code, aiding in the optimization and enhancement of code efficiency.

 

ersureshbe_0-1736260281792.png

 

#slowcodes #slowScripts #codeExecutionTime #scriptBestPractise

 

Hope you like it. If any questions or remarks, let me know!

If this helped you in any way, I would appreciate it if you hit bookmark or mark it as helpful.

 

Regards,

Suresh.