mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-23 00:27:16 +00:00
fix(core): increase PostgreSQL and MySQL connection pool size
- PostgreSQL: 4 -> 10 connections - MySQL: 3 -> 10 connections Fixes #1516
This commit is contained in:
@@ -376,7 +376,7 @@ pub async fn connect_with_ca_cert(
|
||||
ca_cert_path: Option<&str>,
|
||||
fallback_timeout: Duration,
|
||||
) -> Result<MySqlPool, String> {
|
||||
connect_with_ca_cert_and_pool_limit(url, ca_cert_path, fallback_timeout, 3).await
|
||||
connect_with_ca_cert_and_pool_limit(url, ca_cert_path, fallback_timeout, 10).await
|
||||
}
|
||||
|
||||
pub async fn connect_with_ca_cert_and_pool_limit(
|
||||
|
||||
@@ -590,7 +590,7 @@ pub async fn connect(url: &str, fallback_timeout: Duration) -> Result<Pool, Stri
|
||||
mgr_config,
|
||||
);
|
||||
let pool = Pool::builder(mgr)
|
||||
.max_size(4)
|
||||
.max_size(10)
|
||||
.runtime(Runtime::Tokio1)
|
||||
.wait_timeout(Some(timeout))
|
||||
.build()
|
||||
|
||||
Reference in New Issue
Block a user