So, What i'm doing right now is storing an object in the database.
I want to be able to pull that object up, deserialize it, modify it, serialize it, and store it. This could happen frequently, and many users might need to access this object.
With that in mind, I of course don't want multiple people accessing it, changing it, and storing it... it would have completely unexpected or at least conflicting results.
What is the standard method of avoid this? Is there a way to 'lock' the table row in mysql until I'm done with it? Is there a convential method to this?
And finally, what is the usual method of dealing with accessing this 'locked' row? Loop until it is unlocked?
Anything else I should consider? Any and all help is greatly appreciated!