Does anyone know if it's possible to pass the resu...
# suitescript
r
Does anyone know if it's possible to pass the result set from a scheduled script to a map reduce script as a parameter? I have two deployments one deployment that handles a specific set of results. I am able to trigger the map reduce script but all the logging returns nothing useful
b
you are better off passing enough information to the map/reduce to recreate the search
s
You can create whatever script parameters you want... it's probably worth asking why you just not want to run the search in the MR
r
Yeah I was thinking the same thing. Was just thinking to pass in the result set so that MR script can execute even faster. Reducing overhead 🙃
b
your script parameter is basically a string
you can't convert a string directly into a result set
w
You can consider the getInputData of a M/R script to be a scheduled script without the possibility to yield or restart. Same governance of 10000 and concurrency of 1. I often under utilise the resources available in getInputData.