From f0ba4607e5bb1a030eeacea670c64780ec8398c6 Mon Sep 17 00:00:00 2001 From: enxtur Date: Sun, 5 May 2024 18:37:53 +0800 Subject: [PATCH] Add batchLimit for db config --- config/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/config/index.ts b/config/index.ts index 7e53e078..b0aec2f0 100644 --- a/config/index.ts +++ b/config/index.ts @@ -23,6 +23,7 @@ export const CONFIG = { name: process.env.NODE_ENV, authBaseUrl: process.env.AUTHBASE_URL, db: { + batchLimit: 65_536, // 2^16, connection: process.env.POSTGRES_SERVER, logging: !!parseInt(process.env.POSTGRES_LOGGING ?? ''), poolMin: 2,