Hello Everyone, I want to know that , in my suite...
# suitescript
s
Hello Everyone, I want to know that , in my suite script there is an 'usage limit error' occured so what is the approach to resolve this issue , code optimization is one of the way to resolve this issue besides this any other approach that can I apply to my code to handle this error need help..... Thanks in advance
n
https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_N3350651.html Key things to look for. Don’t perform searches or record load/create/save inside a loop. If you are needing to do that you are better off utilizing a map reduce script.
Other than optimization you basically need to look at overall design. If it’s a user event script, can you move it to a map/reduce instead? If you still need it to be user triggered, consider having the user event schedule a task for a map reduce. Or call a suitelet to perform the actions