Group is a significant idea in OrientDB which is utilized to store records, archives, or vertices. In straightforward words, bunch is where a gathering of records are put away. Of course, OrientDB will make one bunch for each class. All the records of a class are put away in a similar group, which has a similar name as the class. You can make up to 32,767(2^15-1) bunches in an information base.
The CREATE class is an order used to make a group with a particular name. When the group is made, you can utilize the bunch to save records by indicating the name during the formation of any information model. On the off chance that you need to add another bunch to a class, use Alter Class order and ADDCLUSTER order.
The accompanying assertion is the essential punctuation of Create Cluster order.
CREATE CLUSTER <cluster> [ID <cluster-id>]
Where <cluster> characterizes the name of the group you need to make and <cluster-id> characterizes the numeric ID you need to use for the bunch.
The accompanying table gives the rundown of Cluster determination systems.
|Sr.No.||Strategy & Description|
Selects the cluster using the class property default ClusterId.
Selects the next cluster in a circular order. It is restarting once complete.
Selects the smallest cluster. Allows the class to have all underlying clusters balanced on size. When adding a new cluster to an existing class, it fills the new cluster first.
Chooses the littlest group. Permits the class to have all basic groups adjusted on size. While adding another bunch to a current class, it fills the new group first.
Allow us to take a guide to make a group named deals.
orientdb> CREATE CLUSTER sales
In the event that the above inquiry is executed effectively, you will get the accompanying yield.
Cluster created correctly with id #12