Overview
The large_query_threshold parameter specifies the threshold for query execution time. Requests that exceed this threshold may be paused and are then automatically identified as large queries, subject to the large query scheduling strategy.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter. User tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Time |
| Default Value | 5s |
| Value range | [0ms, +∞) |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Set the query execution time threshold to 5s.
obclient> ALTER SYSTEM SET large_query_threshold = '5s';