add slowQueryThreshold setting to configure slow query warning
This commit is contained in:
@@ -321,7 +321,7 @@ export function createPostgresDataSource(config: Config) {
|
||||
printReplicationMode: !!config.dbReplications,
|
||||
})
|
||||
: undefined,
|
||||
maxQueryExecutionTime: 300,
|
||||
maxQueryExecutionTime: config.db.slowQueryThreshold,
|
||||
entities: entities,
|
||||
migrations: ['../../migration/*.js'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user