From 0d4e35ee0203bfbe2d43c73eed87f0abee66dae1 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 21 Jun 2026 21:00:07 +0800 Subject: [PATCH] fix(core): increase PostgreSQL and MySQL connection pool size - PostgreSQL: 4 -> 10 connections - MySQL: 3 -> 10 connections Fixes #1516 --- crates/dbx-core/src/db/mysql.rs | 2 +- crates/dbx-core/src/db/postgres.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/dbx-core/src/db/mysql.rs b/crates/dbx-core/src/db/mysql.rs index d3624ac0b1..8ce4b5ddcc 100644 --- a/crates/dbx-core/src/db/mysql.rs +++ b/crates/dbx-core/src/db/mysql.rs @@ -376,7 +376,7 @@ pub async fn connect_with_ca_cert( ca_cert_path: Option<&str>, fallback_timeout: Duration, ) -> Result { - 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( diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rs index 615335d067..ebdcfeaf7f 100644 --- a/crates/dbx-core/src/db/postgres.rs +++ b/crates/dbx-core/src/db/postgres.rs @@ -590,7 +590,7 @@ pub async fn connect(url: &str, fallback_timeout: Duration) -> Result