We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easy and quick to estimate the total number of vertices or edges..
It's obviously unreasonable to use gremlin's method (like g.V().count) to get the result. Like #102 , #37
g.V().count
Backend Version: Cassandra 3.0x or Cassandra 3.1x
The text was updated successfully, but these errors were encountered:
就cassandra来说,有一个比较好的思路统计总的点边数 : 它自身提供了一个统计某个表总行数(Number of keys)的接口,可以快速得到一个预估但具体数值 (可通过JMX很方便的调用)
Number of keys
JMX
≤
≈
3.0x
/path/to/bin/nodetool cfstats |grep cfName -A 15 |grep "Number of keys" |awk '{print $5}'
curl http://127.0.0.1:7777/jolokia/read/org.apache.cassandra.metrics:type=ColumnFamily,keyspace=hugegraph,scope=graph_vertices,name=EstimatedRowCount
以上是这种思路的原理和实现方式, 虽然它的局限性比较明显, 但的确是一个简单快速统计出总点边的方法, 仅供大家参考~
Sorry, something went wrong.
@imbajin 非常感谢
补充Cassandra各版本的差异,可参考:
DSE 5.1 ~ 6.8: Number of partitions (estimate)
Apache Cassandra 3.0 ~ 2.2: Number of keys (estimate)
No branches or pull requests
Expected behavior
Easy and quick to estimate the total number of vertices or edges..
Actual behavior
It's obviously unreasonable to use gremlin's method (like
g.V().count
) to get the result.Like #102 , #37
Specifications of environment
Backend Version: Cassandra 3.0x or Cassandra 3.1x
The text was updated successfully, but these errors were encountered: