[ https://issues.apache.org/jira/browse/CASSANDRA-7296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562910#comment-15562910 ]
Edward Capriolo commented on CASSANDRA-7296: -------------------------------------------- {quote} stmt = session.prepare("SELECT * from tab where id = ?", consistency_level=ConsistencyLevel.ONE) stmt.disable_dynamic_snitch() {quote} I think it would be better using more standard SQL for optimizations. This is the common way query hints are provided. {quote} stmt = session.prepare("SELECT /*disable_snitch=true*/ * from tab where id = ?", consistency_level=ConsistencyLevel.ONE) {quote} Providing extra methods like this seems thrift like. {quote} stmt.disable_dynamic_snitch() {quote} This makes an API not a query language. > Add CL.COORDINATOR_ONLY > ----------------------- > > Key: CASSANDRA-7296 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7296 > Project: Cassandra > Issue Type: Improvement > Reporter: Tupshin Harper > > For reasons such as CASSANDRA-6340 and similar, it would be nice to have a > read that never gets distributed, and only works if the coordinator you are > talking to is an owner of the row. -- This message was sent by Atlassian JIRA (v6.3.4#6332)