Once again, it makes no sense to send all your res...
# suitescript
s
Once again, it makes no sense to send all your results to
reduce
to call
map
on them in the array, just use the map entry point
e
Governance is greater in the reduce stage, I believe 5000 vs 1000 units
s
Processing 1000 results all in one reduce has a better chance of hitting governance limit than utilizing the map/reduce schema, which sends each result individually to the map entry. You aren't processing all 1k in one entry of map so in almost every case, governance limit doesnt matter in MR.
e
depends what it is you’re doing… sometimes you need the governance, so it makes sense to operate under the reduce and not map stage
s
If you need that much governance, you are probably not utilizing the structure of map/reduce properly. It is almost never a good practice to come close to utilizing that much governance in one entry of either map or reduce. I don't see a scenario where you are not going to hit a timeout before consuming that much governance.