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 filter down RollUpApply #4575

Open
czpmango opened this issue Aug 23, 2022 · 0 comments
Open

Push filter down RollUpApply #4575

czpmango opened this issue Aug 23, 2022 · 0 comments
Labels
type/feature req Type: feature request

Comments

@czpmango
Copy link
Contributor

Optimize the performance of the following statement, currently the filter n.age<30 is not pushed down.

MATCH (v:player) 
MATCH (v)-[:like*2]-(n:player) 
WHERE n.age<30 and not (v)-->(n)
RETURN distinct n

Describe the solution you'd like
Add optimizer rule PushFilterDownRollUpApplyRule.
Before: Filter(n.age<30 and not (v)-->(n)) -> RollUpApply
After: Filter(not (v)-->(n)) -> RollUpApply -> Filter(n.age<30)

Additional context
Is there room for optimization in the implementation of pattern expression?

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