On 4/30/2014 3:53 PM, Jacob Carlborg wrote:
On 2014-04-30 17:04, Adam D. Ruppe wrote:
You also have problems like race conditions:
account = BankAccount.find(1)
account.balance -= 10
account.save!
I think most Rails application are run single threaded. But with
multiple processes instead.
Aren't you talking about databases? Single-threading won't save you from
races there unless the DBMS itself is single-threaded (which would be a
pretty undesirable DBMS).
Or does the ORM above automatically lock the row/table behind-the-scenes?