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_VARIABLE(Oracle-compatible mode) orinformation_schema.GLOBAL_VARIABLES(MySQL-compatible mode) view to view the value of a global system variable.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle-compatible mode) orinformation_schema.SESSION_VARIABLES(MySQL-compatible mode) view to view 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.
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;