Community Best Practices for App Performance

Hey all,   I was reading Community best practices from app development and found this   To prevent locking, do scheduled events that commit data in small chunks. This is so the data does not get locked over a longer period of time.,a%20longer%20period%20of%20time.   Can someone give me real case scenario when to use it?   Best regards, Slavko
1 answers

Hi Slavko,


I have had a recent issue with a database lock error. Within an app, we had a quite extensive action that took a while to complete. During this action, while it was still ongoing, another action was initiated that performs calls on the same Database record. Since the first action was still ongoing, we received an error that the record was locked.


I think the same logic applies for scheduled events.