News for hackers. Stuff that matters.
Re:How our users exploited concurrency and how we fixed it by delano on Friday January 11, 2013 @12:57PM (#5043949)
You could wrap the transaction in a lock based on the player ID which you could do with Redis or Memcached with near-zero impact on performance.

A good reference: http://www.nateware.com/an-atomic-rant.html

Re:How our users exploited concurrency and how we fixed it by EvilTrout on Friday January 11, 2013 @01:16PM (#5044069)
That introduces external dependencies though. Also, since the update has to occur anyway, I'd bet that my solution is faster than also making a call to another database for a lock.