-
Notifications
You must be signed in to change notification settings - Fork 617
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
[Performance Issue] Generic relationship does not honor type when query #2941
Comments
The Looking at the other issue and the |
I can guess this behavior, but I think the design is wrong. But I think the root cause is SDN treat the BaseNode as a (:Parent1)-[r:Parent1_CONTAIN]->(:Child1)
(:Parent1)-[r:Parent1_CONTAIN]->(:Child2) So, I have to use a base class to get all of them. @Relationship(type = "Parent1_CONTAIN", direction = Relationship.Direction.OUTGOING)
private List<BaseRelationship<BaseNode>> parent1Relationships; @meistermeier Is there any other way to achieve this requirement without base class issue? |
Any update? |
I have some node
When I get parent1 with find all:
The log shows
In the query log, shows it search for
Parent2_CONTAIN
but it shouldn't, becauseParent2_CONTAIN
is not in Parent1 node.In real case, if I have 10 node extends the base node, it will end up query all 10 node's relationship, I think it is a performance issue.
Change to
Child
still have this issueAlso, I think this issue is associate
#2933
The text was updated successfully, but these errors were encountered: