fix(core): Update N8N_DATA_TABLES_MAX_SIZE_BYTES default to 50mb (no-changelog) (#19570)

This commit is contained in:
Ricardo Espinoza
2025-09-18 07:58:17 -04:00
committed by GitHub
parent ddab467448
commit 5713cb2a38
2 changed files with 4 additions and 4 deletions

View File

@@ -4,14 +4,14 @@ import { Config, Env } from '../decorators';
export class DataTableConfig { export class DataTableConfig {
/** Specifies the maximum allowed size (in bytes) for data tables. */ /** Specifies the maximum allowed size (in bytes) for data tables. */
@Env('N8N_DATA_TABLES_MAX_SIZE_BYTES') @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. * 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. * When the usage of a data table reaches or exceeds this value, a warning is issued.
*/ */
@Env('N8N_DATA_TABLES_WARNING_THRESHOLD_BYTES') @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. * The duration in milliseconds for which the data table size is cached.

View File

@@ -53,8 +53,8 @@ describe('GlobalConfig', () => {
ssl_cert: '', ssl_cert: '',
editorBaseUrl: '', editorBaseUrl: '',
dataTable: { dataTable: {
maxSize: 100 * 1024 * 1024, maxSize: 50 * 1024 * 1024,
warningThreshold: 95 * 1024 * 1024, warningThreshold: 45 * 1024 * 1024,
sizeCheckCacheDuration: 5000, sizeCheckCacheDuration: 5000,
}, },
database: { database: {