In a MapReduce script, what is the limit of values...
# ask-stanley-ai
a
In a MapReduce script, what is the limit of values that can be passed in the reduce stage?
c
AI generated answer (using internal Slack threads):
In a Map/Reduce script in NetSuite, there is a limit to the size of data that can be passed between any two stages. Specifically, there is a memory size limit of 200 MB for the getInputData stage’s serialized data output. This means that if the serialized/stringified version of the query, search, or other return type is larger than 200 MB, the script will fail and terminate, and no further stages will get called. Additionally, Map/Reduce scripts require you to divide the work into units that fit into 1000 and/or 5000 unit blocks. If your process cannot be broken into sub-processes that fit within these limits, you may need to rethink your logic or consider using a different type of script, such as a scheduled script, which has one 10000 point block. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.871193886
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.869010568
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.862863779
Please provide your feedback on this answer.