update: limited db pool size to save memory

This commit is contained in:
alikia2x (寒寒) 2025-02-22 22:06:51 +08:00
parent 9da623e731
commit d2f9f28608
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

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, 32);
const pool = new Pool(postgresConfig, 10);
export const db = pool;