From 5713cb2a383db51620dc5ccb1d6ea887c113e03c Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 18 Sep 2025 07:58:17 -0400 Subject: [PATCH] fix(core): Update `N8N_DATA_TABLES_MAX_SIZE_BYTES` default to 50mb (no-changelog) (#19570) --- packages/@n8n/config/src/configs/data-table.config.ts | 4 ++-- packages/@n8n/config/test/config.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@n8n/config/src/configs/data-table.config.ts b/packages/@n8n/config/src/configs/data-table.config.ts index bbef271589..7538d37bce 100644 --- a/packages/@n8n/config/src/configs/data-table.config.ts +++ b/packages/@n8n/config/src/configs/data-table.config.ts @@ -4,14 +4,14 @@ import { Config, Env } from '../decorators'; export class DataTableConfig { /** Specifies the maximum allowed size (in bytes) for data tables. */ @Env('N8N_DATA_TABLES_MAX_SIZE_BYTES') - maxSize: number = 100 * 1024 * 1024; + maxSize: number = 50 * 1024 * 1024; /** * The percentage threshold at which a warning is triggered for data tables. * When the usage of a data table reaches or exceeds this value, a warning is issued. */ @Env('N8N_DATA_TABLES_WARNING_THRESHOLD_BYTES') - warningThreshold: number = 95 * 1024 * 1024; + warningThreshold: number = 45 * 1024 * 1024; /** * The duration in milliseconds for which the data table size is cached. diff --git a/packages/@n8n/config/test/config.test.ts b/packages/@n8n/config/test/config.test.ts index eca4ef00bb..8eecbb6e42 100644 --- a/packages/@n8n/config/test/config.test.ts +++ b/packages/@n8n/config/test/config.test.ts @@ -53,8 +53,8 @@ describe('GlobalConfig', () => { ssl_cert: '', editorBaseUrl: '', dataTable: { - maxSize: 100 * 1024 * 1024, - warningThreshold: 95 * 1024 * 1024, + maxSize: 50 * 1024 * 1024, + warningThreshold: 45 * 1024 * 1024, sizeCheckCacheDuration: 5000, }, database: {