Overview
The global_index_auto_split_policy parameter specifies whether to enable automatic partitioning for newly created global indexes.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can use theALTER SYSTEM SETstatement to modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | STRING |
| Default Value | DISTRIBUTED |
| Value range |
|
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETstatement to modify the value of this parameter. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
You can execute the ALTER SYSTEM SET statement to modify the value of the global_index_auto_split_policy parameter. If the primary table is an auto-partitioned table, its global indexes are also automatically partitioned. If the primary table is not an auto-partitioned table, the global indexes are configured according to the policy defined by global_index_auto_split_policy.
If the value of
global_index_auto_split_policyis set toALL, automatic splitting is enabled by default for newly created global indexes.If the value of
global_index_auto_split_policyis set toDISTRIBUTED, automatic splitting is enabled by default for newly created global indexes when it is determined that resources are available across multiple nodes within the tenant (for example, when the tenant has more than one primary zone or more than one unit).If the value of
global_index_auto_split_policyis set toOFF, automatic splitting of all global indexes, including existing ones, is disabled.
For more information about automatic partitioning, see Automatic partition splitting.
Configuration example
Create a global index and enable automatic partitioning.
obclient> ALTER SYSTEM SET global_index_auto_split_policy = 'ALL';
References
For information about enabling automatic partitioning for a tenant, see enable_auto_split.