Question

When using the Cassandra backend, is it possible to see the Cassandra queries are being executed from Titan, and how long each query takes? Ideally it would output to standard error, or a log file.

This can possibly help optimise the structure of my queries if I can see any inefficiencies in the way Titan is talking to Cassandra.

Was it helpful?

Solution

Thanks to one of the authors of Titan, an acceptable way is to enable debugging in Cassandra.

You can do this by uncommenting the DEBUG lines in the cassandra log4j-server.properties file, then restarting Cassandra:

log4j.logger.org.apache.cassandra=DEBUG
log4j.logger.org.apache.cassandra.db=DEBUG
log4j.logger.org.apache.cassandra.service.StorageProxy=DEBUG
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top