jack 1 개월 전
부모
커밋
400efa8f92
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      py/core/providers/database/base.py

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

@@ -28,11 +28,11 @@ class SemaphoreConnectionPool:
 
             self.pool = await asyncpg.create_pool(
                 self.connection_string,
-                min_size=300,
+                min_size=200,
                 max_size=self.postgres_configuration_settings.max_connections,
                 statement_cache_size=self.postgres_configuration_settings.statement_cache_size,
-                timeout=120,             # 获取连接超时 60 秒
-                command_timeout=60,     # 单个查询超时 30 秒(可选)
+                timeout=0,             # 获取连接超时 60 秒
+                command_timeout=0,     # 单个查询超时 30 秒(可选)
             )
 
             logger.info(