|
@@ -33,7 +33,7 @@ class SemaphoreConnectionPool:
|
|
|
min_size=200,
|
|
min_size=200,
|
|
|
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=0, # 获取连接超时 60 秒
|
|
|
|
|
|
|
+ timeout=120, # 获取连接超时 60 秒
|
|
|
command_timeout=120, # 单个查询超时 30 秒(可选)
|
|
command_timeout=120, # 单个查询超时 30 秒(可选)
|
|
|
)
|
|
)
|
|
|
|
|
|