From 6940c532ea0bc5433d78ea9bf6aa981970c40c9e Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:43:04 -0700 Subject: [PATCH] Speed up message migration further --- ts/background.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/background.ts b/ts/background.ts index de4bc257316..a3e7dccfeca 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -987,8 +987,8 @@ export async function startApp(): Promise { `Starting background data migration. Target version: ${Message.CURRENT_SCHEMA_VERSION}` ); idleDetector.on('idle', async () => { - const NUM_MESSAGES_PER_BATCH = 25; - const BATCH_DELAY = durations.SECOND / 2; + const NUM_MESSAGES_PER_BATCH = 1000; + const BATCH_DELAY = durations.SECOND / 4; if (isIdleTaskProcessing) { log.warn(