moeed-k commented on issue #628:
URL: https://github.com/apache/age/issues/628#issuecomment-1404872725

   It does look like it's doing a bi-directional scan of each label to every 
other label. I think if you optimize the query with some more information it 
will improve the time. For example, specifying the labels, or only looking for 
relationships in one direction (by using (v)-[r]->(v) instead of (v)-[r]-(v) ). 
You could also keep the variables anonymous and look just for the relationship:
   ( ) -[r:similar] - ( ), and return that if that's what you're interested in. 
  


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to