Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Exactly; each of these operations require only 1 query (you don't need to SELECT and then UPDATE), and then a third SELECT query afterwards to ensure the transferrer's balance wasn't reduced to below 0, in which case the save point is rolled back.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: