I\'ve already looked at other answers and I still feel that my question is relevant and deserves a separate entry.
I have a table named settings(which stores user se
If you like to gamble - then do this :)
To be 99% sure you would have to lock the table for writing. You are not sure that the (in future) two transactions will not be able to intertwine.
To be 100% sure you read these values. (Or analyze the source MySQL) The best solution would be to add the date to tablei edit settings and read the latest. If you do not want to change the structure, you can use triggers http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html.
Good solution will be refresh all your settings or only pairs: key - setting name