Closed maguec closed 5 years ago
Thanks @maguec - @swilly22 this is ported from redisgraph-py, WDUT?
The issue is with the multiple calls to graph.commit, The idea is to introduce all nodes to the graph before committing it, The example above calls commit multiple times, each time with a graph bigger by one node from the previous iteration.
For some use-cases it would make sense to clear after commit, but there might be situations where you would like to keep the Go graph representation, I don't mind introducing an explicit clear function but that would need to take into account both nodes and edges.
I will rewrite with a specific flush funciont
Running the following
Returns:
Running Monitor seems to show that the node map is not being cleared after commiit