What is the maximum number of records that are retrieved in a graph query?
For eg.
g.V().hasLabel("Acc")
How many vertices data will be retrieved? What is the limit?
Hi,
I am assuming that you are using DSE Graph 6.8.
Under the hood, the query g.V().hasLabel("Acc")
will execute as follows:
SELECT * FROM graphname.Acc
I am not aware of a hard limit with this type of query.
However, there are limits that apply to query execution time, and I would expect that you would run into the default limit for the real-time evaluation timeout with large tables, by default 30 seconds.
The question here is what you want to achieve with reading the entire vertex table. DSEGraphFrames with Spark might be a better alternative for operations where you want to read the entire table.
Would you update your question with more context?
Hi,
Thanks for your response.
In our use case we have a thousands of different vertices which will be retrieved in a single transaction. So, we need to know what is the limit on data returning in a single transaction.
Any help would be appreciated.
I am not sure I understand your requirement here.
However, as explained in a previous answer:
Cassandra as the underpinning database has no concept for transactions, which means that also Tinkerpop transactions do not provide the kind of ACID guarantee that you are hoping for.
7 People are following this question.
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