5 ms·Just run the whole operation in a transaction and verify whatever you need to verify before committing.by peter422 3y agoJust run the whole operation in a transaction and verify whatever you need to verify before committing.