From d2f9f28608018e78bb6388acae91674317e7f6fb Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sat, 22 Feb 2025 22:06:51 +0800 Subject: [PATCH] update: limited db pool size to save memory --- lib/db/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/init.ts b/lib/db/init.ts index ed4667d..b4cdb08 100644 --- a/lib/db/init.ts +++ b/lib/db/init.ts @@ -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, 32); +const pool = new Pool(postgresConfig, 10); export const db = pool;