3 ms·
Transactions can have different isolation levels. And sometimes the problem at hand can be implemented using transactions with weak isolation levels which are n
by xanton 10y ago
Transactions can have different isolation levels. And sometimes the problem at hand can be implemented using transactions with weak isolation levels which are not that hard to implement using your favorite NoSQL database that support CAS operation. I recommend this article: http://rystsov.info/2012/09/01/cas.html http://rystsov.info/2012/09/01/cas.html
- kpmah 10y agoYes, be aware of the transactional capabilities of your database. Some ACID databases in their default configuration don't provide all transactional guarantees!
- brandur 10y agoI just wanted to add that the Postgres documentation [1] and Wikipedia [2] are both really well written when it comes to explaining each isolation level and the guarantees that it provides. Well worth the reading time. [1] https://www.postgresql.org/docs/current/static/transaction-iso.html https://www.postgresql.org/docs/current/static/transaction-i... [2] https://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels https://en.wikipedia.org/wiki/Isolation_(database_systems)#I...