Note
This variable is available starting with V4.2.0.
Description
parallel_min_scan_time_threshold specifies the minimum execution time for evaluating a base table scan before parallel processing is enabled. This parameter is used in the Auto DOP strategy to calculate the degree of parallelism. When the evaluation execution time exceeds this threshold, parallel processing is enabled, and the threshold is used to calculate an appropriate degree of parallelism.
Privilege requirements
Query variables
Global level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the value of a global system variable.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to obtain the value of a session system variable.
Modify variables
Global level
systenants 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
systenants and all user tenants can directly modify the value of a session system variable of their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 1000 |
| Value range | [ 10, 9223372036854775807 ] in ms |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the minimum execution time for evaluating a base table scan before parallel processing is enabled to 100 ms. 100 ms is the value of the parallel_min_scan_time_threshold parameter.
Session level
obclient> SET parallel_min_scan_time_threshold = 100;Global level
obclient> SET GLOBAL parallel_min_scan_time_threshold = 100;