Hacker News new | ask | show | jobs
by icebraining 4535 days ago
Even if it did translate to that, what happens when downloads_left is 1 and two updates were to run concurrently?

Unless the data isn't that important, it's better to use an RDBMS with SSI[1] support, and retry or bail out if there's a concurrent write.

http://www.postgresql.org/docs/current/static/mvcc-intro.htm...