How do you manage concurrent access to forms?

前端 未结 8 1331
离开以前
离开以前 2020-12-17 15:27

We\'ve got a set of forms in our web application that is managed by multiple staff members. The forms are common for all staff members. Right now, we\'ve implemented a locki

8条回答
  •  长情又很酷
    2020-12-17 16:14

    You can use "timestamp" column on your table. Refer: What is the mysterious 'timestamp' datatype in Sybase?

    I understand that you want to avoid overwriting existing data with consecutively updates.

    If so, when the user opens a screen you have to get last "timestamp" column to the client.

    After changing data just before update, you should check the "timestamp" columns(yours and db) to make sure if anyone has changed tha data while he is editing.

    If its changed you will alert an error and he has to startover. If it is not, update the data. Timestamp columns updated automatically.

提交回复
热议问题