tx().config().option()

How to specify a transaction-wide option.

Synopsis

tx().config().option(*option*).open()

Examples

Change the value of allow_scan for a transaction. The effect of this change is to allow all commands executed in the gremlin-console on a particular node to do full graph scans, even if the consistency level for the cluster is not QUORUM, the value required to change this option in the appropriate system table.

graph.tx().config().option("allow_scan", true).open()

Note that the previous transaction (automatically opened in gremlin-console or Studio) must be committed before the new configuration option value is set.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com