Is there a way to get graph query traversal plan and the cost assign to each steps without executing the steps?
Is there a way to get graph query traversal plan and the cost assign to each steps without executing the steps?
@francis.ofougwuka_151231 you can get metrics on a traversal by adding the profile()
step. For example:
gremlin> g.V().has('recipe', 'name', 'Beef Bourguignon').inE().values('comment').profile()
For more info, see Anatomy of a graph traversal. Cheers!
@francis.ofougwuka_151231 if I understood your comment, it isn't possible to find out the cost of a query before it runs because Cassandra does not do a read-ahead. Cheers!
@Erick Ramirez I am aware of the .profile() command. But the problem with it is that it executes the query before providing the cost which is a bit slower.
For example, if i constructed a long running query that's bad in terms of performance, I will have to wait awhile to get the cost of my query.
6 People are following this question.
Why is groupCount() returning inconsistent results for vertices?
Attempts to run Gremlin commands in Studio returns "All DSE gremlin server hosts are currently down"
What tool can I use to check the underlying Cassandra query fired by a gremlin traversal?
Is there a limit to adding multiple vertices and edges in a single graph traversal?
Gremlin queries always return 10 records in Studio and application
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, 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.
Privacy Policy Terms of Use