Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How to improve Map/Reduce (In)Efficiency on Transaction Lines?
I understand the basic concept of the Map/Reduce script to take all the elements (results) from the Search in the Map stage and process them individually (so that the script actions can be paused / resumed as required by other NetSuite processes).
My particular script is taking a search of multiple transactions, and then multiple (but not all) lines on each transaction.
In this scenario, the Map/Reduce logic does not make sense as the script appears to be loading and saving the transaction for each line result (which is hugely inefficient and slow).
Is there any way to use a Map/Reduce but configure it to 'group' all lines in a transaction into a single action so that the record is only loaded and saved once?