Can NetSuite eliminate the Schedule script? though we have map/reduce.
This is my curious question?
Can NetSuite eliminate the schedule script because there have Map/reduce script with better performance. means is there any specific need of schedule script now that’s why NetSuite still have keep it.
One of the main reasons would be backwards compatibility, if they remove schedule scripts a lot of existing systems would break.
Also with schedule scripts you are not restricted to using the getInputData, Map, Reduce and Summary functions. You can structure the script however you like which is useful when you want to have context of the whole script and not a single instance like in a Map/Reduce.
I can’t see NetSuite completely removing schedule script but I could see them stopping you from adding more in a later version.
you mean backward compatibility is the only strong reason to keep it otherwise we can achieved everything with map/reduce that we can do via Schedule script.
Correct.
I’m not sure I’d say it’s the *only* strong reason. Both script types can be triggered on a regular schedule or on-demand via the `N/task` module. The Map/Reduce is specifically designed with large datasets and parallelization in mind. If all you need to do is perform a scheduled task on a small data set, the Map/Reduce is wildly overkill. The Scheduled Script will likely accomplish the task with less code and less time in the processor queue.



