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 automatic partitioning table, the global index is automatically partitioned. If the primary table is not an automatic partitioning table, the global_index_auto_split_policy parameter determines the partitioning strategy.
If the value of
global_index_auto_split_policyis set toALL, automatic partition splitting is enabled by default when a global index is created.If the value of
global_index_auto_split_policyis set toDISTRIBUTED, automatic partition splitting is enabled by default when a global index is created, provided that the tenant has multiple nodes (such as more than one primary zone or more than one unit).If the value of
global_index_auto_split_policyis 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-compatible mode) or Automatic partition splitting (Oracle-compatible mode).
Examples
Enable automatic partition splitting for a global index.
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