mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(core): Update N8N_DATA_TABLES_MAX_SIZE_BYTES default to 50mb (no-changelog) (#19570)
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user