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: {