Creates a new cluster in the database. Once created, you can use the cluster to save records by specifying its name during saves. If you want to add the new cluster to a class, follow its creation with the ALTER CLASS command, using the ADDCLUSTER option.


CREATE CLUSTER <cluster> [ID <cluster-id>]
  • <cluster> Defines the name of the cluster you want to create. You must use a letter for the first character, for all other characters, you can use alphanumeric characters, underscores and dashes.
  • <cluster-id> Defines the numeric ID you want to use for the cluster.


  • Create the cluster account:

    orientdb> CREATE CLUSTER account

For more information see,

results matching ""

    No results matching ""