I'm trying to implement some optimistic locking when inserting rows into a database table. ...What I'm trying to do is, acquire a row from the database. If a row with given key does not exist, it is inserted first. I'm currently testing this for high conc...