Z-HUANT commented on PR #2408:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2408#issuecomment-1905255509

   The Gremlin optimization code has been added, and related tests are as 
follows.
   
   
   Gremlin Optimization:
   - For IN queries: Remove non-adjacent nodes from the list.
   - For EQ queries: Return an empty query if it is not an adjacent node.
   
   The following data is available:
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/14c591bc-ec4c-4720-8ee6-aeab5be6e910)
   
   
   **In queries test:**
   Filter out other nodes, only retain Person nodes:
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/fa96457e-4218-4acd-b659-dc14a193aac2)
   Filter out other nodes, only retain software nodes:
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/ed2d9def-f2da-4099-9c32-564e9442406e)
   
   
   **Eq queries test:**
   Non-adjacent node query:
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/5755112b-0f70-4fd9-90da-a8f0912785da)
   Adjacent node query:
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/54877e25-d831-4df3-9d41-17791dd5c7a9)
   
   


-- 
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