Hi @graham.pople , @vsr1
suppose document is "{
“hote1”:{
“city”:“Delhi”
},
“hotel2”:{
“city”:“Bangalore”
}
}
when i write update myucket set hotel1.city=“Bangalore” where hotel1.city=“Delhi”
will updates on hotel1 and concurrent updates like this on hotel2
will result in concurrent update exception
or its equivalent to subdoc APIs
Getting this error:
[{“msg”:“DML Error, possible causes include CAS mismatch or concurrent modificationFailed to perform update - cause: MCResponse status=KEY_EEXISTS, opcode=SET, opaque=0, msg: Data exists for key”,“code”:12009}
Hi @vsr1
yes it makes sense, if i start using sub doc API for update. It will eliminate this issue right.
But i am windering is it possible to make conditional update
like update only when “hotel1.city”=“Delhi”