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:
Want to know why the results are inconsistent.
CodePudding user response:
You can refer this:
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 edgesAt 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.