Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
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?