Note
This variable is available starting with V4.2.0.
Description
parallel_degree_policy specifies the parallelism selection strategy.
Privilege requirements
Query variables
Global level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the value of a global system variable.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to obtain the value of a session system variable.
Modify variables
Global level
systenants can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
systenants and all user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Enum |
| Default value | MANUAL |
| Value range | [ "MANUAL", "AUTO" ]
Note
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Disable the Auto DOP strategy.
Session level
obclient> SET parallel_degree_policy = manual;Global level
obclient> SET GLOBAL parallel_degree_policy = manual;