Community Best Practices for App Performance

0
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.   https://docs.mendix.com/refguide/community-best-practices-for-app-performance/#:~:text=To%20prevent%20locking%2C%20do%20scheduled,a%20longer%20period%20of%20time.   Can someone give me real case scenario when to use it?   Best regards, Slavko
asked
1 answers
1

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.

answered