mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
chore: 调整 Postgres 连接池默认参数:增大最大连接数、缩短获取超时
This commit is contained in:
@@ -21,8 +21,8 @@ impl Default for PostgresPoolConfig {
|
||||
Self {
|
||||
database_url: String::new(),
|
||||
min_connections: 1,
|
||||
max_connections: 20,
|
||||
acquire_timeout_ms: 5_000,
|
||||
max_connections: 30,
|
||||
acquire_timeout_ms: 3_000,
|
||||
idle_timeout_ms: 60_000,
|
||||
max_lifetime_ms: 30 * 60_000,
|
||||
statement_cache_capacity: 100,
|
||||
|
||||
Reference in New Issue
Block a user