I have a Workflow Sublist Action Group that checks all lines on a Sales Order and updates fields where necessary. These checks need to be done when the Order is saved. Obviously, on longer orders, this has a noticeable impact on the time taken to save the Sales Order.
Currently testing this in Sandbox (which is slow anyway), if I Disable the Sublist Action Group the time to save a large (60 line) sales order drops from 48 seconds to 21 seconds (this is time from pressing save in the browser, to the updated transaction re-drawing on screen with the green confirmation message 'Transaction Successfully Saved' at the top).
However, I am slightly confused (surprised) at the results of testing with the Before and After Submit options on the workflow. As I understand it, the before submit will make the workflow changes before saving the record, and after submit would save the record, then make the changes and save again. I assumed that using after submit we would see the transaction save in the NetSuite UI (without the after submit changes), and then have to refresh the transaction to see the updated fields.
It seems this is not the cases. The length of time from clicking the save button to the 'Transaction Successfully Saved' message appears to be consistent (+/- 1 second) regardless of before or after submit processing.
Is this correct / expected? Does the NetSuite UI wait for the After Submit actions to complete before presenting the 'Transaction Successfully Saved' message?