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

some question about new go plan #5389

Open
nevermore3 opened this issue Mar 8, 2023 · 0 comments
Open

some question about new go plan #5389

nevermore3 opened this issue Mar 8, 2023 · 0 comments
Labels
type/feature req Type: feature request

Comments

@nevermore3
Copy link
Contributor

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

The go statement is divided into two operators, expand operator and expandAll operator. expand is responsible for expansion and does not take attributes. expandAll is responsible for expansion and take attributes that user need.

go 3 steps from 'Tim Duncan' over like yield like._dst as id limit [2, 2, 2]

previous plan
image

When there is a limit in each step, the previous plan is that the limit operator in each step is pushed down to the storage layer, and then do limit in graph layer again

new plan
image

In expand & expandAll, use the adjacency list to save the already visited vertex and corresponding edges. When the visited vertex are visited again, the data is fetched from the adjacency list instead of RPC.

When there is a limit in each step, In order to ensure the integrity of the data in the adjacency list, limit will not be push down to storage, so there will be a loss in performance in this scenario

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant