OrientDB – Truncate Cluster The Truncate Cluster command deletes all records of a cluster. The following statement is the basic syntax of Truncate Cluster Command. TRUNCATE CLUSTER <cluster-name> Where <cluster-name> is the name of the cluster. Example Try the following query to truncate the cluster named sales. Orientdb {db = demo}> TRUNCATE CLUSTER Profile If […]
OrientDB – Drop Cluster The Drop Cluster command removes the cluster and all its related content. This operation is permanent and rollback. The following statement is the basic syntax of Drop Cluster command. DROP CLUSTER <cluster-name>|<cluster-id> Where <cluster-name> defines the name of the cluster you want to remove and <cluster-id> defines the ID of the […]
OrientDB – Alter Cluster Alter Cluster command is to update attributes on an existing cluster. In this chapter you can learn how to add or modify the attributes of a cluster. The following statement is the basic syntax of Alter Cluster command. ALTER CLUSTER <cluster> <attribute-name> <attribute-value> Following are the details about the options in […]