From fda14a12196a46ab278628e91e28bb23f63d0bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 19:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/think-orm.php | 144 +++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/config/think-orm.php b/config/think-orm.php index 3bab8c1..dc536da 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -31,8 +31,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -66,8 +66,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -101,8 +101,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -137,8 +137,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -172,8 +172,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -207,8 +207,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -243,8 +243,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -282,8 +282,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -318,8 +318,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -354,8 +354,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -390,8 +390,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -425,8 +425,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -460,8 +460,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -495,8 +495,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -530,8 +530,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -565,8 +565,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -600,8 +600,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -635,8 +635,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -670,8 +670,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -705,8 +705,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -740,8 +740,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -775,8 +775,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -810,8 +810,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -845,8 +845,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -880,8 +880,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -915,8 +915,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -950,8 +950,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -985,8 +985,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1020,8 +1020,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1055,8 +1055,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1091,8 +1091,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1127,8 +1127,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1163,8 +1163,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1198,8 +1198,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1234,8 +1234,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒 @@ -1269,8 +1269,8 @@ return [ 'bootstrap' => '', // 连接池配置 'pool' => [ - 'max_connections' => 5, // 最大连接数 - 'min_connections' => 1, // 最小连接数 + 'max_connections' => 100, // 最大连接数 + 'min_connections' => 10, // 最小连接数 'wait_timeout' => 3, // 从连接池获取连接等待超时时间 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒