Posted: 25 Nov 2020 9:18 EST Last activity: 25 Nov 2020 17:22 EST
Slow Obj-Save method
I'm working with Obj-Save method in activity, but it takes too much time to do the process, I'm doing the Page-New method, propery-set and everything, then I put the Obj-Save method (WriteNow, WithErrors, OnlyIfNew parameters unchecked) finally I'm doing a "Call commitWithErrorHandling", and according of logs Obj-Save takes about 30 seconds, why can this take too much time? do you have any idea?
Obj-Save with WriteNow unchecked should - on its own - be near immediate as there is no interaction with the database occurring in that step.
Perhaps check whether there are any "On Save" Declare Triggers on the class of data that is being saved. These run synchronously as part of the Obj-Save, causing Obj-Save to block until the "On Save" Declare Triggers are complete.