Adding and Removing Clusters from a Class

12 views
Skip to first unread message

Eric24

unread,
Nov 20, 2017, 11:11:43 PM11/20/17
to OrientDB
It's easy to add more storage capacity to a Class by simple creating and adding a new Cluster to that Class. There is also a way to remove a Cluster from a Class, but this doesn't "redistribute" the data in that Cluster to other Clusters in the Class. Is that function supported "automatically" (i.e. in any way other than to write code to scan through the RIDs in the removed Class and create new records in one of the remaining classes)?

Luigi Dell'Aquila

unread,
Nov 21, 2017, 2:11:34 AM11/21/17
to orient-...@googlegroups.com
Hi Eric,

Moving records from a cluster to another is not supported, because re-calculating link references is a very expensive operation.
There is a MOVE VERTEX command that (as you can guess) is specific to vertices, it takes into consideration edges and re-attaches them correctly

Thanks

Luigi


2017-11-21 5:11 GMT+01:00 Eric24 <er...@24x8.com>:
It's easy to add more storage capacity to a Class by simple creating and adding a new Cluster to that Class. There is also a way to remove a Cluster from a Class, but this doesn't "redistribute" the data in that Cluster to other Clusters in the Class. Is that function supported "automatically" (i.e. in any way other than to write code to scan through the RIDs in the removed Class and create new records in one of the remaining classes)?

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages