Tuesday, May 21, 2013

Concurrent update with Sugar

Today I would like to share with you a useful feature of Sugar that is not well known: the lock record when two users are updating the same record.

Let's assume that Will is editing the opportunity "ABC opty 100 units" in Sugar. He wants to update the amount. At the same time, Jim is editing this opportunity. Will is faster than Jim and finished the editing before Jim and saved the opportunity. When Jim is clicking on the save button, he is firing the Sugar optimistic Lock. Sugar is showing a special page that is asking to Jim if he wants to commit his modification or not. Jim can see exactly the differences:


If the change had not been made by Will but by an interface (API user) the result would have been exactly the same for Jim.

This feature is very useful and prevent the concurrent update of the same record by two users.

No comments:

Post a Comment