Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(core): increase PostgreSQL and MySQL connection pool size

t8y20d4e35ee0203
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<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(
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<Pool, Stri
mgr_config,
);
let pool = Pool::builder(mgr)
- .max_size(4)
+ .max_size(10)
.runtime(Runtime::Tokio1)
.wait_timeout(Some(timeout))
.build()