add slowQueryThreshold setting to configure slow query warning
This commit is contained in:
parent
5d8a8bba2a
commit
b057d3be0d
6 changed files with 25 additions and 5 deletions
|
|
@ -321,7 +321,7 @@ export function createPostgresDataSource(config: Config) {
|
|||
printReplicationMode: !!config.dbReplications,
|
||||
})
|
||||
: undefined,
|
||||
maxQueryExecutionTime: 300,
|
||||
maxQueryExecutionTime: config.db.slowQueryThreshold,
|
||||
entities: entities,
|
||||
migrations: ['../../migration/*.js'],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue