Note
For V4.3.5 BP2, this parameter is available starting with V4.3.5 BP2.
Description
global_index_auto_split_policy specifies whether to enable automatic partition splitting for newly created global indexes.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
The
systenant and user tenants can use theALTER SYSTEM SETstatement to modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | STRING |
| Default value | DISTRIBUTED |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
Use the ALTER SYSTEM SET statement to modify the value of the global_index_auto_split_policy parameter. If the primary table is an automatically partitioned table, the global index is also automatically partitioned. If the primary table is not an automatically partitioned table, the global_index_auto_split_policy parameter determines whether to enable automatic partition splitting.
If the
global_index_auto_split_policyparameter is set toALL, automatic partition splitting is enabled by default for newly created global indexes.If the
global_index_auto_split_policyparameter is set toDISTRIBUTED, automatic partition splitting is enabled by default for newly created global indexes when multiple nodes are available in the tenant (for example, the number of primary zones or units in the tenant is greater than 1).If the
global_index_auto_split_policyparameter is set toOFF, automatic partition splitting is disabled for all global indexes, including existing ones.
For more information about automatic partition splitting, see Automatic partition splitting (MySQL mode) or Automatic partition splitting (Oracle mode).
Examples
Enable automatic partition splitting for newly created global indexes.
obclient> ALTER SYSTEM SET global_index_auto_split_policy = 'ALL';
References
For information about whether to enable automatic partition splitting for a tenant, see enable_auto_split
