feat: maxlink and search sql

This commit is contained in:
archer
2023-06-05 14:02:53 +08:00
parent 48fbc74168
commit 2f1506bf07
2 changed files with 12 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ export const connectPg = async () => {
user: process.env.PG_USER,
password: process.env.PG_PASSWORD,
database: process.env.PG_DB_NAME,
max: maxLink,
max: Math.floor(maxLink * 0.5),
idleTimeoutMillis: 60000,
connectionTimeoutMillis: 20000
});