diff --git a/app/init/registers.php b/app/init/registers.php index fc2111b15c..f6b3234e39 100644 --- a/app/init/registers.php +++ b/app/init/registers.php @@ -231,7 +231,7 @@ $buildPoolGroup = function (string $configPrefix, callable $adapterFactory, ?int throw new \Exception('Pool size is too small. Increase the number of allowed database connections or decrease the number of workers.', 500); } - $poolSize = (int)($instanceConnections / $workerCount); + $poolSize = (int)(($instanceConnections / $workerCount)/2); foreach ($connections as $key => $connection) { $type = $connection['type'] ?? '';