diff --git a/demos/guru_scripts/loop_detection_demo/queries/circleDetection.gsql b/demos/guru_scripts/loop_detection_demo/queries/circleDetection.gsql index 7a3f36c00..1bf877108 100644 --- a/demos/guru_scripts/loop_detection_demo/queries/circleDetection.gsql +++ b/demos/guru_scripts/loop_detection_demo/queries/circleDetection.gsql @@ -266,7 +266,9 @@ CREATE QUERY circleDetection (vertex srcId, int stepLowLimit = 3, int s tgt.@edgeTupleList = tgt.@newEdgeTupleList, tgt.@receiveNewPath = true, tgt.@newEdgeTupleList.clear() - END + END, + //clean up to reduce memory footprint + src.@edgeTupleList.clear() HAVING tgt.@receiveNewPath == true ; @@ -302,7 +304,9 @@ CREATE QUERY circleDetection (vertex srcId, int stepLowLimit = 3, int s END, tgt.@receiveNewPath = true, tgt.@newEdgeTupleList.clear() - END + END, + //clean up to reduce memory footprint + src.@edgeTupleList.clear() HAVING tgt.@receiveNewPath == true and tgt != srcId ;