-
Notifications
You must be signed in to change notification settings - Fork 616
Optimise update of relationship properties #2668
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
Milestone
Comments
meistermeier
added a commit
that referenced
this issue
Feb 9, 2023
There is no need to fetch start and end node if we already have the identifier of the relationship to update. Closes #2668
meistermeier
added a commit
that referenced
this issue
Feb 10, 2023
There is no need to fetch start and end node if we already have the identifier of the relationship to update. Closes #2668
michael-simons
added a commit
that referenced
this issue
Mar 31, 2023
In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires `__relationships__` to be present. In the case of relationships with defined properties, `Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch` only defines that argument for new relationships, so updating relationships with properties fails. Closes #2704
michael-simons
added a commit
that referenced
this issue
Mar 31, 2023
In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires `__relationships__` to be present. In the case of relationships with defined properties, `Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch` only defines that argument for new relationships, so updating relationships with properties fails. Closes #2704
michael-simons
added a commit
that referenced
this issue
Mar 31, 2023
In #2668 storing of relationships has been optimised so that existing relationships are not always refetched. The new query always requires `__relationships__` to be present. In the case of relationships with defined properties, `Neo4jMappingContext#createStatementForRelationshipWithPropertiesBatch` only defines that argument for new relationships, so updating relationships with properties fails. Closes #2704
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the update query also fetches start and end node of the already existing relationship.
But we also know the exact id of the relationship and could just use this.
The text was updated successfully, but these errors were encountered: