Im using neo4j spring And I was wondering on how to efficiently update an existing node with a new relationship.
Currently Im doing the following:
var mydto = repository.findById(theid);
var newrelationship = new SomeRelationship();
This kind of works, however what happens when that Node has millions of SomeRelationship connected? To me it doesn't seem efficient to first retrieve those millions inside the application and then save back to neo4j? Should I write a create query on the repository? What is the best practise here?