Overview
parallel_min_scan_time_threshold is a parameter used to calculate the degree of parallelism in the auto-DOP strategy. It sets the minimum estimated execution time for parallel processing of base table scans. When the estimated execution time for a base table scan exceeds this threshold, parallelism is enabled, and an appropriate degree of parallelism is calculated based on this value.
Privilege requirements
Query variables
Global level
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
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 | 1000 |
| Value range | [ 10,9223372036854775807 ] in ms |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the minimum estimated execution time for parallel processing of base table scans to 100 ms.
Session expiration
obclient> SET parallel_min_scan_time_threshold = 100;Effective globally
obclient> SET GLOBAL parallel_min_scan_time_threshold = 100;