diff --git a/apps/server/src/integrations/environment/environment.service.ts b/apps/server/src/integrations/environment/environment.service.ts index 9eb21a19..02a9605c 100644 --- a/apps/server/src/integrations/environment/environment.service.ts +++ b/apps/server/src/integrations/environment/environment.service.ts @@ -320,6 +320,9 @@ export class EnvironmentService { } getBaseQueryCacheMaxCollections(): number { + // Default is intentionally low (50) because a single-node self-host with + // ~100 MB per collection can pin ~5 GB RSS at the cap. SaaS/larger + // deployments can raise via env. return parseInt( this.configService.get('BASE_QUERY_CACHE_MAX_COLLECTIONS', '50'), 10,