<@UFAHSLYJ1> About records `load` and `save` times...
# suitescript
a
@Craig About records
load
and
save
times you need to consider a couple of things: - How many
beforeSubmit
functions do I have and how much work they do. - How many
afterSubmit
functions do I have and how much work they do, any of those load the record again or submitFields to the same record? - How many
Client Scripts
do I have and how much work do they do? can I possibly move some of this work to an
UserEvent
script? - Finally how many fields I have doing sourcing or post sourcing? do they have any formula in the default or sourcing value? Can I optimize this formulas? Note; Don’t forget about Workflows.