dan.laffan PRO said over 2 years ago on Discussing Race Conditions :
Sometimes, race conditions cause your data to get overwritten.  I find it useful to add a
lock_version:integer
 field to my tables to help prevent this.