vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.9k stars 1.21k forks source link

FETCH EDGE for wildcard of rank #4144

Open wey-gu opened 2 years ago

wey-gu commented 2 years ago

Is your feature request related to a problem? Please describe.

Get all ranked edges with given src/dst.

Describe the solution you'd like

implement getEdges() interface to support scan all ranks, I see this isn't that ideally efficient due to rank key is between srcVID, type, and dstVID rather than after dstVID(it will be faster to scan), but it's still faster than the current plan being done through MATCH(which started from vertex and Traverse)*.

*: Without support of fetch edge for all ranks, the best way to get this is:

explain match (m:t1)-[e:e1]->(n:t1) WHERE id(m)=="10" AND id(n)=="11" return e

Describe alternatives you've considered

Additional context

akhilravuri-tul-scm commented 2 years ago

When we can expect this feature in production?

I know It's very early just wanted to know the estimated timeline.