jack 1 月之前
父節點
當前提交
7d8f3423e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      py/core/providers/database/base.py

+ 1 - 1
py/core/providers/database/base.py

@@ -28,7 +28,7 @@ class SemaphoreConnectionPool:
 
             self.pool = await asyncpg.create_pool(
                 self.connection_string,
-                min_size=self.postgres_configuration_settings.min_connections,
+                min_size=300,
                 max_size=self.postgres_configuration_settings.max_connections,
                 statement_cache_size=self.postgres_configuration_settings.statement_cache_size,
                 timeout=120,             # 获取连接超时 60 秒