Browse Source

Mondify connection pool size from NestJS (#8136)

JaeHyeok Kim 2 years ago
parent
commit
808d714c53
1 changed files with 6 additions and 0 deletions
  1. 6 0
      frameworks/TypeScript/nest/ormconfig.js

+ 6 - 0
frameworks/TypeScript/nest/ormconfig.js

@@ -23,6 +23,9 @@ switch (process.env.DATABASE_CONFIGURATION_PROFILE) {
       username: 'benchmarkdbuser',
       password: 'benchmarkdbpass',
       entities: ['./dist/sql/*.entity.js'],
+      extra: {
+        connectionLimit: 30,
+      }
     };
     break;
   case 'postgres':
@@ -34,6 +37,9 @@ switch (process.env.DATABASE_CONFIGURATION_PROFILE) {
       username: 'benchmarkdbuser',
       password: 'benchmarkdbpass',
       entities: ['./dist/sql/*.entity.js'],
+      extra: {
+        max: 30
+      }
     };
     break;
 }