incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

异步执行count任务拿到结果与预期不符?

Open Ghosttttt opened this issue 7 years ago • 1 comments

Expected behavior 期望表现

image 返回点的个数

Actual behavior 实际表现

image 试了几次拿到的结果都是1,是在执行异步任务的时候有什么别的需要注意的吗?

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}

Ghosttttt avatar Mar 29 '19 07:03 Ghosttttt

@Ghosttttt 这里的1表示结果的数量,可以使用g.V().count().next()获取count本身的值。

javeme avatar Mar 31 '19 14:03 javeme