Note
This variable is available starting with V4.2.0.
Description
parallel_degree_limit specifies the maximum parallel degree that the optimizer can choose when the Auto DOP strategy is used.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) view to obtain the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) view to obtain the value of a session system variable.
Modify variables
Global level
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.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
systenant and all user tenants can directly modify the value of a session system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 0
Note0 indicates that the parallel degree is not limited. |
| Value range | [0, 9223372036854775807], where the unit is parallel degree |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the maximum parallel degree that the optimizer can choose when the Auto DOP strategy is used to 256.
Global level
obclient> SET GLOBAL parallel_degree_limit=256;Session level
obclient> SET parallel_degree_limit=256;