Note
This variable is available starting with V4.2.0.
Description
parallel_min_scan_time_threshold is a parameter in the Auto DOP strategy used to calculate the parallelism. It specifies the minimum evaluation execution time for parallel processing of base table scans. When the evaluation execution time for a base table scan exceeds this threshold, parallel processing is enabled, and the parallelism is calculated based on this value.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) and theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement or 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
The
systenant can directly modify the value of global system variables.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the value of global system variables.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the value of global system variables.
Session level
The
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 ] Unit: 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;
