This commit is contained in:
2023-08-24 13:41:27 +08:00
parent 36e768e3e6
commit b1ac46f14f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class Connection extends Component
public int $waite_time = 3;
public int $idle_time = 600;
public int $idle_time = 60;
public array $pool = ['max' => 10, 'min' => 1];
+1 -1
View File
@@ -64,7 +64,7 @@ class DatabasesProviders extends Providers
'tablePrefix' => $database['tablePrefix'],
'database' => $database['database'],
'connect_timeout' => $database['connect_timeout'] ?? 10,
'idle_time' => $database['idle_time'] ?? 300,
'idle_time' => $database['idle_time'] ?? 60,
'waite_time' => $database['waite_time'] ?? 3,
'pool' => $clientPool,
'attributes' => $database['attributes'] ?? [],