Hi, I have a question about D1. I'm using it together with Drizzle ORM. I have a table that stores u

Hi, I have a question about D1. I'm using it together with Drizzle ORM. I have a table that stores user balances, and each request deducts from the balance. The issue is that a simple query like
amount -= 100
might cause a problem known as a race condition (I think). It seems D1 doesn't support transactions, so could async operations cause issues here?
Was this page helpful?