-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to optimize query performance for a large number of edges #4786
Comments
Below are the details: Nebula Version: v3.1.0Deployment:three servers and each server deployed with one nebula-metad, one nebula-graphd, and one nebula-storaged. Machine Info:
Space Statistics:Partition Number:240 Replica Factor : 3
nGQL and profile resultCase detail: the user MATCH:Firstly we tried MATCH (m)-[e:follow]->(n:member) WHERE id(m)=="m_1" MATCH (n)-[f:follow]->(l) WHERE id(l)=="m_2" RETURN id(n); Explain result : Profile result: In this case, we don't need any properties, so we tried GO:GO FROM "m_1" OVER follow YIELD dst(edge) AS member_id INTERSECT GO FROM "m_2" OVER follow REVERSELY YIELD src(edge) AS member_id Explain result : Profile result: FIND PATHFIND ALL PATH FROM "m_1" TO "m_2" OVER follow,follow UPTO 2 STEPS YIELD path AS p | YIELD nodes($-.p) AS nodes | YIELD $-.nodes AS nodes, size($-.nodes) AS len | YIELD id($-.nodes[1]) as id WHERE $-.len == 3 Explain result: Profile result: The After reading the docs about
And solutions at the application end are also not suitable as we can't do any one of the following:
|
@forest-yuxl @MuYiYong @critical27 can anyone help us with this problem? |
General Question
One of our business scenarios:
A's following B is also following C, and we need to find out B
Using
FIND ALL PATH ...
to query is very slowly, takes few seconds, is there a faster way?The text was updated successfully, but these errors were encountered: