Note
This variable was introduced in V4.2.0.
Description
The parallel_degree_policy variable specifies the parallel degree selection strategy.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a global system variable.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
The
systenant 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.For V4.x, Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable starting from V4.2.0.
Set the variable at the session level
The
systenant 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
|
| Effect scope |
|
| Modifiable | Yes. You can modify it by using the SET statement. |
Examples
set parallel_degree_policy = manual;
set parallel_degree_policy = auto;
set global parallel_degree_policy = manual;
set global parallel_degree_policy = auto;