Note
This variable is available starting with V4.2.0.
Description
parallel_min_scan_time_threshold specifies the minimum evaluation execution time for parallel processing of base table scans in the Auto DOP strategy. When the evaluation execution time for base table scans exceeds this threshold, parallel processing is enabled, and a suitable parallel degree is calculated based on this value.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) and theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of global system variables.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) and theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the values of session system variables.
Modify variables
Global level
systenant can directly modify the value of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of global system variables.
Session level
systenant and all user tenants can directly modify the value of session system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 1000 |
| Value range | [ 10, 9223372036854775807 ] ms |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the minimum evaluation execution time for parallel processing of base table scans to 100 ms.
Session level
obclient> SET parallel_min_scan_time_threshold = 100;Global level
obclient> SET GLOBAL parallel_min_scan_time_threshold = 100;