update: increase db pool limit
This commit is contained in:
parent
d2f9f28608
commit
95fa08b517
@ -1,6 +1,6 @@
|
|||||||
import { Pool } from "https://deno.land/x/postgres@v0.19.3/mod.ts";
|
import { Pool } from "https://deno.land/x/postgres@v0.19.3/mod.ts";
|
||||||
import {postgresConfig} from "lib/db/pgConfig.ts";
|
import {postgresConfig} from "lib/db/pgConfig.ts";
|
||||||
|
|
||||||
const pool = new Pool(postgresConfig, 10);
|
const pool = new Pool(postgresConfig, 12);
|
||||||
|
|
||||||
export const db = pool;
|
export const db = pool;
|
||||||
|
@ -29,7 +29,7 @@ const filterWorker = new Worker(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ connection: redis, concurrency: 4, removeOnComplete: { count: 1000 } },
|
{ connection: redis, concurrency: 2, removeOnComplete: { count: 1000 } },
|
||||||
);
|
);
|
||||||
|
|
||||||
filterWorker.on("active", () => {
|
filterWorker.on("active", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user