-
Notifications
You must be signed in to change notification settings - Fork 233
Open
Labels
Description
Version: redisgraph:2.10.3
Compared with three other queries, the result 39993 is weird and not expected.
127.0.0.1:6379> GRAPH.QUERY Movies "MATCH ()-[a]-() RETURN count((a))"
1) 1) "count((a))"
2) 1) 1) (integer) 20000
3) 1) "Cached execution: 1"
2) "Query internal execution time: 0.199469 milliseconds"
127.0.0.1:6379> GRAPH.QUERY Movies "MATCH ()-[a]->() RETURN count((a))"
1) 1) "count((a))"
2) 1) 1) (integer) 20000
3) 1) "Cached execution: 1"
2) "Query internal execution time: 0.203676 milliseconds"
127.0.0.1:6379> GRAPH.QUERY Movies "MATCH ()-[a]-() RETURN count(id(a))"
1) 1) "count(id(a))"
2) 1) 1) (integer) 39993
3) 1) "Cached execution: 1"
2) "Query internal execution time: 55.574468 milliseconds"
127.0.0.1:6379> GRAPH.QUERY Movies "MATCH ()-[a]->() RETURN count(id(a))"
1) 1) "count(id(a))"
2) 1) 1) (integer) 20000
3) 1) "Cached execution: 1"
2) "Query internal execution time: 17.713576 milliseconds"