运营要求修改某条记录的权重,但用户参与的时候,会对另外一个字段更新,如果用户和运营的操作是同时进行的话,会不会导致前者或者后者更新丢失 ?
ringa_lee
Let’s put it this way. When data is updated, a write lock is added. When another operation is to be written, it will enter waiting. until the write lock is released.
Updating different fields will not work, provided that each of your update statements only updates one field
No, make sure the where condition of update is correct
Let’s put it this way. When data is updated, a write lock is added. When another operation is to be written, it will enter waiting. until the write lock is released.
Updating different fields will not work, provided that each of your update statements only updates one field
No, make sure the where condition of update is correct