Knowledge Base
NetSuite Resources
Reference articles for NetSuite developers and administrators: SuiteScript patterns, performance optimization, workflow design, and more.
Map/ReduceSuiteScriptPerformance
NetSuite Map/Reduce: Why Each map() Execution Must Be Independent
The power of Map/Reduce comes from parallel execution. If your map() function shares state with other invocations, through global variables, running totals, or order assumptions, that parallelism breaks silently. Learn why, and how to design map() correctly.
7 min read
Map/ReduceSuiteScriptPerformance
NetSuite Map/Reduce: Why getInputData() Should Do Almost Nothing
getInputData() is the most misunderstood stage in SuiteScript Map/Reduce. Its job is to define the workload, not execute it. Loading records or running searches inside getInputData() defeats the purpose of the framework entirely.
6 min read