jack 4 tháng trước cách đây
mục cha
commit
7d8f3423e7

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

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