|
|
@@ -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(
|