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

Push the limit down to optimize match statement performance #4876

Open
czpmango opened this issue Nov 15, 2022 · 3 comments
Open

Push the limit down to optimize match statement performance #4876

czpmango opened this issue Nov 15, 2022 · 3 comments
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@czpmango
Copy link
Contributor

czpmango commented Nov 15, 2022

Many user scenarios need to optimize the performance of statements containing the limit clause, and the cost of pattern extension is often the key point. The optimizer can do some limit push down to improve these performance issues.

For example:

MATCH (v)-[e]->(n) WITH v, n LIMIT 8 RETURN v.prop

Current plan: ...->Traverse->AppendVertices->Limit->Project->...
Optimized plan: ...->Traverse(limit=8)->Limit->AppendVertices->Project->...

@czpmango czpmango added the type/enhancement Type: make the code neat or more efficient label Nov 15, 2022
@zy857189690
Copy link

me too

@zy857189690
Copy link

+1

@tarzanwill
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

3 participants