Carl,
this is what you can do. Relationships are immutable, that is, once
created you have to delete them and create new ones in order to change
endpoints. Not much choice there. What is the size of your
reassignments and the number of relationships in one transaction?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Aug 11, 2011 at 4:47 PM, cnordenfelt <[email protected]> wrote:
> Hi
> I have started to digg into neo4j and have not found a nice way to change
> many relationships from one node to another. For example, I have n1 with a
> relationship to m1, m2 and m3. Now I would like to change the relationship
> to point from n2 to m1, m2 and m3 instead. I could of course fetch all
> relationships from n1 and change each relationship individually to n2 but
> this will make me iterate over all relationships, which could be quite many.
> Is there any way to replace a node with another or to "reassign" multiple
> relationships with one operation?
>
> I'm currently using the Java API.
>
> Thanks
> Carl
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Change-multiple-relations-in-one-operation-tp3246141p3246141.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to