Skip to content
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

optimize go 1 step/go m to n step plan #4709

Closed
nebula-bots opened this issue Oct 11, 2022 · 0 comments · Fixed by #4750
Closed

optimize go 1 step/go m to n step plan #4709

nebula-bots opened this issue Oct 11, 2022 · 0 comments · Fixed by #4750
Assignees
Labels
auto-sync type/enhancement Type: make the code neat or more efficient

Comments

@nebula-bots
Copy link
Contributor

same as https://github.com/vesoft-inc/nebula-ent/pull/1376, go 1 step/go m to n step plan can also be optimized

  • In the following query, the where clause only uses dst tag props, so we still can replace Getneightbors with GetDstbySrc.
profile {GO 1 STEP FROM 32985348833536,32985348833537 OVER LIKES,KNOWS REVERSELY WHERE $$.Person.lastName == "Sezer" YIELD distinct  id($$)  | YIELD  count(*)}
profile {GO 1 TO 3 STEP FROM 32985348833536,32985348833537 OVER LIKES,KNOWS REVERSELY WHERE $$.Person.lastName == "Sezer" YIELD distinct  id($$)  | YIELD  count(*)}
  • In the following query, the where clause only uses dst_id, so we still can replace Getneightbors with GetDstbySrc.
profile {GO 1 STEP FROM 32985348833536,32985348833537 OVER LIKES,KNOWS REVERSELY WHERE id($$)>1000 YIELD distinct  id($$)  | YIELD  count(*)}
profile {GO 1 TO 3 STEP FROM 32985348833536,32985348833537 OVER LIKES,KNOWS REVERSELY WHERE id($$)>1000 YIELD distinct  id($$)  | YIELD  count(*)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-sync type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants