Note
This parameter is available starting with V1.4.
Description
large_query_threshold specifies the threshold of query execution time. Requests exceeding this threshold may be paused and automatically identified as large queries, triggering the large query scheduling strategy.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 5s |
| Value range | [0ms, +∞)
NoteFor V4.2.x, this value range is adjusted from [1ms, +∞) to [0ms, +∞) starting with V4.2.3. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the threshold of query execution time to 5s.
obclient> ALTER SYSTEM SET large_query_threshold = '5s';