Archive for August, 2009

August 5

Beware of Rails Optimistic Locking and MySQL

Posted by mtoledo
Filed under rails, ruby | 7 Comments

There’s a caveat when using rails optimistic locking inside callbacks in a fault tolerant way with mysql’s default settings. Of course that’s a lot of things and sounds like a very specific scenario, but its not that much. Let me break it down:
Rails optimistic locking
Rails will automatically create locks around a record being updated in [...]