Note
This variable is available starting with V4.2.0.
Description
The parallel_degree_policy option specifies the parallelism selection strategy.
Privilege requirements
Query variables
Global level
systenants and user tenants can view the value of a Global system variable by executing theSHOW VARIABLESstatement or querying the viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode).Session level
systenants and user tenants can view the value of a Session system variable by executing theSHOW VARIABLESstatement or querying the viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode).
Modify variables
Global level
The
systenant can modify the value of a Global system variable.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the value of a Global system variable.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the value of a Global system variable.
Session level
systenants and user tenants can modify the value of a Session system variable.
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;
