MySQL Variables max_insert_delayed_threads 数据库 参数变量解释及正确配置使用
本站中文解释
MySQL参数`max_insert_delayed_threads`用于设置MySQL服务器可以同时处理延时插入(INSERT DELAYED)查询的线程数量。
该参数默认值为20,最大值由hyper-threading和服务器上的CPU数量决定。如果客户端对MySQL Server发出的INSERT DELAYED查询过多,而max_insert_delayed_threads参数值太低,则MySQL服务器可能无法处理这些查询,从而导致客户端长时间处于等待状态。
要设置该参数,可以在MySQL数据库实例中执行以下查询:
“`sql
SET GLOBAL max_insert_delayed_threads=n;
“`
其中`n`为需要设置的参数值。
官方英文解释
max_insert_delayed_threads
Deprecated | Yes |
---|---|
System Variable | max_insert_delayed_threads |
Scope | Global, Session |
Dynamic | Yes |
Type | Integer |
Default Value | 0 |
Minimum Value | 20 |
Maximum Value | 16384 |
This variable is a synonym for
max_delayed_threads
.
This system variable is deprecated (because
DELAYED
inserts are not supported); expect
it to be removed in a future release.