Преглед на файлове

Increase the connection pool size. (#8532)

MARiA so cute преди 1 година
родител
ревизия
8832674a83
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      frameworks/PHP/swoole/database.php

+ 1 - 1
frameworks/PHP/swoole/database.php

@@ -133,7 +133,7 @@ class Connections
             ->withUsername('benchmarkdbuser')
             ->withPassword('benchmarkdbpass');
 
-        self::$pool = new PDOPool($config, 20);
+        self::$pool = new PDOPool($config, intval(1024 / swoole_cpu_num()));
     }
 
     public static function db(): string