Overview
parallel_degree_limit specifies the maximum degree of parallelism that the optimizer can choose when the auto-DOP strategy is used.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Uint |
| Default Value | 0
Note0 indicates that the degree of parallelism is not limited. |
| Value range | [0, 9223372036854775807], in parallelism |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
When the auto-DOP strategy is used, the optimizer's upper limit for selecting the degree of parallelism is set to 256.
Effective globally
obclient> SET GLOBAL parallel_degree_limit=256;Session effective
obclient> SET parallel_degree_limit=256;