If you want to avoid a mapreduce when there's only...
# suitescript
j
If you want to avoid a mapreduce when there's only a few invoices, you can calculate how many you can do within the governance of the suitelet and keep the current model when the input number is below that threshold