Skip to content

Conversation

@markspolakovs
Copy link
Member

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 COLUMN showplan_last_modified TIMESTAMPTZ DEFAULT NULL;

UPDATE myradio.schema
SET value = 14
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SET value = 14
SET value = 19

wat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants