update: limited db pool size to save memory
This commit is contained in:
parent
9da623e731
commit
d2f9f28608
@ -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, 32);
|
const pool = new Pool(postgresConfig, 10);
|
||||||
|
|
||||||
export const db = pool;
|
export const db = pool;
|
||||||
|
Loading…
Reference in New Issue
Block a user