NS Admin Lab

← Lab

SuiteScript

It worked fine… until the volume grew

Published

A Scheduled Script that processes everything in one run is fine with a few records. When volume grows, the trouble starts.

Scheduled Script

  • A single run, capped at 10,000 governance units.
  • If it runs out of units, it stops halfway.

Map/Reduce

  • Works in stages: getInputData, map, reduce and summarize.
  • Processes one record at a time: one error doesn’t stop the rest.
  • In summarize you review what failed and why.

Rule of thumb: Scheduled for short jobs with predictable volume. Map/Reduce for many records or growing volume. When in doubt, start with Map/Reduce.

Let’s talk

Comments on this note? Message me on LinkedIn.

Go to my LinkedIn ↗