So, I work in a high concurrency environment. What I want to do is select a row from the mysql database based on a specific property, and then, as soon as I get this row, I want to set the “blocked” flag on the row so that I can do some work in php (which it might take some time) and then unlock it when I finish. What is the best way to do this to prevent concurrency issues that occur when you have a separate SELECT and UPDATE command?
peter986532
source share