update: increase db pool limit

This commit is contained in:
alikia2x (寒寒) 2025-02-22 22:21:09 +08:00
parent d2f9f28608
commit 95fa08b517
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { Pool } from "https://deno.land/x/postgres@v0.19.3/mod.ts";
import {postgresConfig} from "lib/db/pgConfig.ts";
const pool = new Pool(postgresConfig, 10);
const pool = new Pool(postgresConfig, 12);
export const db = pool;

View File

@ -29,7 +29,7 @@ const filterWorker = new Worker(
break;
}
},
{ connection: redis, concurrency: 4, removeOnComplete: { count: 1000 } },
{ connection: redis, concurrency: 2, removeOnComplete: { count: 1000 } },
);
filterWorker.on("active", () => {