這是根據官方文件。cassandra的寫作操作序列。爲什麼它沒有問題?
All writes are sequential, which is the primary reason that writes perform so well in
Cassandra. No reads or seeks of any kind are required for writing a value to Cassandra
because all writes are append operations.
很困惑,因爲萬一有插入操作和重複的主鍵的情況下,將卡珊德拉首先從memTable中或在需要的情況下搜索,如果數據被刷新到的SSTable。
因此,如果用戶ID值123已經存在,我們插入123行,它失敗,因爲它內部它根據該密鑰讀取。這是我的疑問,如果有人可以澄清請求。
感謝。這有助於。 – user2775185