This commit is contained in:
Hongbo Wu
2023-08-23 12:41:02 +08:00
parent 9370951893
commit fc52b522f2
51 changed files with 80 additions and 103 deletions

View File

@ -16,7 +16,7 @@ export const AppDataSource = new DataSource({
subscribers: [__dirname + '/events/**/*{.js,.ts}'],
namingStrategy: new SnakeNamingStrategy(),
logger: new CustomTypeOrmLogger(),
// cache: true,
connectTimeoutMS: 60000, // 60 seconds
maxQueryExecutionTime: 60000, // 60 seconds
cache: true,
connectTimeoutMS: 40000, // 40 seconds
maxQueryExecutionTime: 10000, // 10 seconds
})