YMatrix
Quick Start
Simulate Time Series Scenarios
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Writing
Data Migration
Data Query
Scene Application Examples
Federal Query
Maintenance and Monitoring
Global Maintenance
Partition Maintenance
Backup and Restore
Cluster Expansion
Enable Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool Guide
Data Type
Storage Engine
Execution Engine
Stream Processing
DR (Disaster Recovery)
Configuration Parameters
Index
Extension
SQL Reference
FAQ
Delete the data node collection.
DROP SEGMENT_SET name;
A data node set (Segment Set) refers to a specific set of data nodes in a cluster. After defining a specific data node collection, in the database definition language (DDL) statement that is being built or modified, the created data node collection can be specified so that the data of the table is only distributed on these data nodes, otherwise it will be distributed in all nodes in the cluster by default.
A data node collection is a logical concept that does not actually contain any actual data on any data nodes, and deleting a data node collection will not remove the corresponding node from the cluster. Similarly, creating and deleting data node collections will not affect the actual expansion and shrinking of the cluster, nor will the table data be changed.
Two different sets of data nodes may contain one or more data nodes of the same.
The DROP SEGMENT_SET command deletes a created collection of data nodes at the database level.
NAME
ALL_SEGMENTS
cannot be used, it represents all data nodes under the current cluster size. As the cluster expands, the list of data nodes pointed to by ALL_SEGMENTS
will be different.Delete the created data node collection ss1.
DROP SEGMENT_SET ss1;
Notes!
There is no dependency between the data node collection and the table. After deleting the data node collection specified in the table, the table can still be operated normally.
DROP SEGMENT_SET is a YMatrix database extension, and there is no concept of node collection in the SQL standard.