Concurrent update and rollback capabilities

OR

update default 
use keys ( select raw meta().id from default where type='New' and previousValueField = 'Data123' order by createdTimeStamp limit 10) 
set user='user1' , type='working' , previousValueField = 'DataABC123' 
 where type='New' and previousValueField = 'Data123' 
LIMIT 1
returning meta().id as docId

Retry on cas mismatch or 0 rows

OR

If above doesn’t work

select raw meta().id from default where type=‘New’ and previousValueField = ‘Data123’ order by createdTimeStamp limit 10

All above documents in loop in SDK.
     GET document with cas
      If values changed continue
     else update with cas if succeed break
     else continue

If none of them updated repeat select and loop