perf: queue link

This commit is contained in:
archer
2023-06-17 21:27:44 +08:00
parent 61447c60ac
commit 00c93a63cd
8 changed files with 14 additions and 66 deletions

View File

@@ -12,7 +12,7 @@ export const connectPg = async () => {
user: process.env.PG_USER,
password: process.env.PG_PASSWORD,
database: process.env.PG_DB_NAME,
max: global.systemEnv.vectorMaxProcess + 10,
max: Number(process.env.DB_MAX_LINK || 10),
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 5000
});