3 ms·
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 be
by icebraining 13y 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.html http://www.postgresql.org/docs/current/static/mvcc-intro.htm...