Casper
Casper

Reputation: 419

OrientDB how to move a vertex and maintain relations

The title pretty much says all. I want to move a record in OrientDB from the 'Asset' class to a new class (that keeps the old version of the class 'Asset'). This is possible with MOVE VERTEX x to y. However this creates a new @RID for the node and I don't want to update all relations of the old RID to the new @RID, because this is too expensive. Is there a solution for this? Any help is greatly appreciated, if you need more info, please do ask.

Upvotes: 0

Views: 109

Answers (1)

Lvca
Lvca

Reputation: 9060

MOVE VERTEX takes care of updating all the edges to the new @RID.

Upvotes: 0

Related Questions