Posts Tagged ‘race condition’
0×17 – Atomic science, revisited
23Feb09
I lamented earlier about the absence of a racecondition-free find_or_create implementation and somewhat promised to check back with a working implementation. YES, WE CAN: NOW is the time, folks!
As stated there the first thing missing is an advisory locking implementation. With the database as the natural choice for a synchronisation point that implementation [...]
Filed under: Uncategorized | Leave a Comment
Tags: activerecord, atomic, find_or_update, race condition, rails, ruby