Z-HUANT commented on code in PR #2408:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2408#discussion_r1458579987


##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/EdgeAPI.java:
##########
@@ -291,6 +291,19 @@ public String list(@Context GraphManager manager,
         HugeGraph g = graph(manager, graph);
 
         GraphTraversal<?, Edge> traversal;
+
+        // Optimize edge query. Return early when the EdgeLabel does not exist.
+        if (label != null && !g.existsEdgeLabel(label)) {

Review Comment:
   Okay, I'll add this part of the code later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to