Home > Software design >  NebulaGraph Database: when I use match, lookup, submit job to count the number of a certain side, th
NebulaGraph Database: when I use match, lookup, submit job to count the number of a certain side, th

Time:12-15

NebulaGraph is v3.2.0 of Centos 7.5

As shown in the title, when three methods are adopted to calculate the total number of edges of edge_phone type, the returned results are different. The nebula-import is used to import the original csv file which contains a total of 1346 unique edges.

The details are as following:

enter image description here

enter image description here

Want to know why the results are inconsistent.

CodePudding user response:

You can refer this:

  1. To count the number of edges, the grammar of MATCH (m)-[e:edge_phone]->(n) RETURN count(e) should be used. If there is no direction, the starting vertex and destination of the corresponding edge should be first vertex to make a union, and then start from the vertex after the union. This does not conform to the semantics of the number of statistical edges

  2. At present, there are 437 edges of edge_phone type. You can cross-validate (1), submit job stats and then check the number of edge_phone in stats (2), rebuild edge_phone Index, then execute MATCH (m)-[e:edge_phone]->(n) RETURN count(e) to see if the two numbers are the same.

  • Related