I've read about it in the Documentation but I'm not sure how I can replace transactions with locks or atomic operations.
I have an app written in PHP which sometimes needs more stuff than just a query done in one script. To be sure that no corrupted data or incomplete data is saved in the db when a users kills the browser while the script is executing I use transactions (right now with postgresql, but I want to change to mysql.
So how can I do it with atomic ops or locks?
Thanks in advance!
I have an app written in PHP which sometimes needs more stuff than just a query done in one script. To be sure that no corrupted data or incomplete data is saved in the db when a users kills the browser while the script is executing I use transactions (right now with postgresql, but I want to change to mysql.
So how can I do it with atomic ops or locks?
Thanks in advance!