vali пре 6 година
родитељ
комит
816c13b17f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      datainf/logic/HttpServerSettelement.php

+ 2 - 2
datainf/logic/HttpServerSettelement.php

@@ -70,7 +70,7 @@ class HttpServerSettelement
 
         if ($worker_id == 0) {
             $obj = $this;
-            Swoole\Timer::tick(5000, function ($id) use ($obj) {
+            Swoole\Timer::tick(500, function ($id) use ($obj) {
                 $obj->BatchSqlRedisToDB();
             });
         }
@@ -356,7 +356,7 @@ class HttpServerSettelement
             $redis->connect($redisconfig['host'], $redisconfig['port']);
 
             $batchsql = [];
-            $max = 5000;
+            $max = 1000;
 
             for ($i = 0; $i < $max; $i++) {
                 $now = $redis->rpop(self::SQLKEY);