Add a simple mechanism to check if two people are editing a showplan at the same time, by storing the time it was last modified.
Will go together with a WebStudio change that will, when opened, get the last modified time from the server, and then send it back on every updateShowPlan call. The server will only accept the change if the time still matches (guarded by a SELECT FOR UPDATE), otherwise WebStudio will force the user to reload.
This can be a bit annoying, but the alternative is showplan corruption. Perhaps we can make WebStudio periodically poll for new changes to make it less annoying.
Add a simple mechanism to check if two people are editing a showplan at the same time, by storing the time it was last modified.
Will go together with a WebStudio change that will, when opened, get the last modified time from the server, and then send it back on every updateShowPlan call. The server will only accept the change if the time still matches (guarded by a
SELECT FOR UPDATE
), otherwise WebStudio will force the user to reload.This can be a bit annoying, but the alternative is showplan corruption. Perhaps we can make WebStudio periodically poll for new changes to make it less annoying.