---
title: "large_query_threshold - OceanBase 数据库 V4.3.1 | OceanBase 文档中心"
description: "large_query_threshold 说明 该配置项从 V1.4 版本开始引入。 功能描述 large_query_threshold 用于设置查询执行时间的阈值。超过时间的请求可能被暂停，暂停后自动被判断为大查询，执行大查询调度策略。 属性说明 属性 描述 参数类型 Time 默认值 5s 取值范围 [0ms…"
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.3.1

# large_query_threshold

更新时间：2026-04-10 11:58:02

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.3.1/zh-CN/700.reference/800.configuration-items-and-system-variables/100.system-configuration-items/300.cluster-level-configuration-items/11100.large_query_threshold.md)

#### 说明

该配置项从 V1.4 版本开始引入。

## 功能描述

`large_query_threshold` 用于设置查询执行时间的阈值。超过时间的请求可能被暂停，暂停后自动被判断为大查询，执行大查询调度策略。

## 属性说明

| **属性** | **描述** |
| --- | --- |
| 参数类型 | Time |
| 默认值 | 5s |
| 取值范围 | [0ms, +∞)   #### 说明    对于 V4.3.x 版本，从 V4.3.0 版本开始取值范围由 [1ms, +∞) 调整为 [0ms, +∞)。 |
| 是否可修改 | 是，支持通过 `ALTER SYSTEM SET` 语句修改。 |
| 是否重启 OBServer 节点生效 | 否 |

## 配置示例

设置查询执行时间的阈值为 5s。

```shell
obclient> ALTER SYSTEM SET large_query_threshold = '5s';

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
