changed the pool size distribution

This commit is contained in:
ArnabChatterjee20k committed 2025-12-23 18:30:53 +05:30
1 parent 7e4d404549
commit c03cd258ce
1 file changed
+1 -1
+1 -1
View File
@@ -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'] ?? '';