I am using mysql / ado.net / C # heres my problem I know that mysql is parallel, however I have file data (thumbname) and db data (string) for synchronization.
If I start a transaction and for some reason it doesn’t work, will this be a problem? If this code worked for me on two cores simultaneously, would they be clobber eachother? I need to know if 1) last_insert_id really does not change reliably. 2) if one transaction uses the specified rowid, that the other transaction does not use it.
start transaction insert statement, however i dont want it to be active yet; select LAST_INSERT_ID() File.Delete(lastid)//may exist from a transaction that failed File.Move(thumbImage, lastid) transaction.commit()//ok done
It's safe? Why or why not?
user34537
source share