From f6383afe46e74f5f8b3fc074c09c2abe51026390 Mon Sep 17 00:00:00 2001 From: KOBA789 Date: Fri, 6 Oct 2023 21:49:35 +0900 Subject: [PATCH] Extend slow query threshold to reduce logs (MisskeyIO#171) --- packages/backend/src/postgres.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/postgres.ts b/packages/backend/src/postgres.ts index 6a2fae69a3..d9224cdbc9 100644 --- a/packages/backend/src/postgres.ts +++ b/packages/backend/src/postgres.ts @@ -240,7 +240,7 @@ export function createPostgresDataSource(config: Config) { } : false, logging: log, logger: log ? new MyCustomLogger() : undefined, - maxQueryExecutionTime: 300, + maxQueryExecutionTime: 10000, // 10s entities: entities, migrations: ['../../migration/*.js'], });