cassandra - Cassandra如何处理并发更新?

标签 cassandra acid

Cassandra如何处理多个用户对同一 key 的并发更新? Cassandra是否遵循ACID的“隔离”属性?

最佳答案

虽然不是真正的ACID兼容,但是Cassandra强制执行行级isolation:

For example, if one user was writing a row with two thousand columns, another user could potentially read that same row and see some of the columns, but not all of them if the write was still in progress.

Full row-level isolation is in place, which means that writes to a row are isolated to the client performing the write and are not visible to any other user until they are complete.



至于由不同协调器节点处理的竞争写操作,每个列值都包含一个写时间值,该值指示该写时间。这样可确保对列的最新写入占用了单元格。换句话说,“最后写胜”。

关于cassandra - Cassandra如何处理并发更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33732220/

相关文章:

php - 死锁和超时破坏 ACID 事务

sqlite - SQLite3的数据库文件在突然断电或系统崩溃时会损坏吗?

数据库持久性与性能

java - 如何从集合中读取 UDT(例如 :list) of UDTs with cassandra-driver in java?

cassandra - 使用 CQLSH 查看 Cassandra 分区

cassandra - 我应该为 Cassandra-Driver 4.x 中的 localDataCenter 使用什么

sql - 两个 SQL 事务是否可以在读取时交错?

database - 分布式 (NoSQL) 数据库中的一致性效应

Cassandra ·赫克托 : How to do a MultigetSliceQuery with indexed columns?

mongodb - 是时候学习 Cassandra/MongoDB