Set CONSISTENCY to force the majority of the nodes to respond: To set the consistency level for your current session, use the CONSISTENCY command Use QueryOptions().setConsistencyLevel to set a global consistency level (for the Java driver). If you want to set up a different consistency level for reads than writes, you'll have to do it on a per-statement basis. Where is that default set? and is it for read or write? If you're using the Java driver, you can configure a global Consistency level for BOTH reads and writes (but not only reads and only writes). Since the Consistency Level can be set per-statement, you can either set it on every statement, or use PreparedStatements. If you want to change the consistency level programamtically, use the cassandra driver for your client language. If you just want to change consistency level for your current session, use CONSISTENCY. How would I set different consistency levels for read and write?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |