I am developing a web site of artists profiles and a desktop software to manage its database content. There are many operators that will receive in their in-boxes the same amount of pending records to be revised for approval and publish. The problem is when two or more operators try to edit the same record. It the database server (remote mysql) will raise an lock error or simply will maintain only the data of the operator that saves it for the last.
What would be the best approach (simpler and more efficient way) to check if any one is already editing the record before grant access to this record to another user, or if the owner of the record is, himself, updating his record again in the website?
The software is still at the lab. But when I delivery it to client I know it will be a problem.
I could create a table to flag each record as "in edit" or "idle", so I don't need to alter the structure of the tables (because people are already using them on the site). But I need to be sure that there is a more elegant/faster way to do it.