运营要求修改某条记录的权重,但用户参与的时候,会对另外一个字段更新,如果用户和运营的操作是同时进行的话,会不会导致前者或者后者更新丢失 ?
PHPz2017-04-17 15:25:33
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.
阿神2017-04-17 15:25:33
Updating different fields will not work, provided that each of your update statements only updates one field