1
0

add slowQueryThreshold setting to configure slow query warning

This commit is contained in:
Hazelnoot
2025-05-30 08:10:46 -04:00
parent 5d8a8bba2a
commit b057d3be0d
6 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ export function createPostgresDataSource(config: Config) {
printReplicationMode: !!config.dbReplications,
})
: undefined,
maxQueryExecutionTime: 300,
maxQueryExecutionTime: config.db.slowQueryThreshold,
entities: entities,
migrations: ['../../migration/*.js'],
});