What is the default consistency level in spring-data-cassandra?

*爱你&永不变心* 提交于 2020-02-24 11:21:15

问题


If I don't set any read/write consistency level at all in my spring-data-cassandra project, what will be my consistency level for reads? What about writes?

(I asked this question here, but the Google Group is now locked)


回答1:


The default consistency level used by the driver, if not set, is one. Since spring-data-cassandra, as they claim is:

Based on the latest DataStax Enterprise CQL Java Driver

the default CL is one.




回答2:


See https://jira.spring.io/browse/DATACASS-145 & https://jira.spring.io/browse/DATACASS-146. I am working on this in branch https://github.com/spring-projects/spring-data-cassandra/tree/DATACASS-145. When DATACASS-145 is done, I can move on to DATACASS-146.

I don't think it's going to make it into 1.1.0; 1.1.1 is likely.



来源:https://stackoverflow.com/questions/25066566/what-is-the-default-consistency-level-in-spring-data-cassandra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!