Note
This variable is available starting with V4.2.0.
Description
parallel_degree_policy specifies the parallel degree 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 view the value of Global system variables.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 view the value of Session system variables.
Modify variables
Global level
systenants can directly modify the value of Global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of Global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of Global system variables.
Session level
systenants and all user tenants can directly modify the value of Session system variables.
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;