use smaller batch size when reparsing all messages, to stay response when making changes on slower machines

This commit is contained in:
Mechiel Lukkien
2025-04-17 09:47:53 +02:00
parent 0ce0296a9f
commit 5f9f45983d

View File

@ -16,7 +16,7 @@ import (
// We process messages in database transactions in batches. Otherwise, for accounts
// with many messages, we would get slowdown with many unwritten blocks in memory.
var reparseMessageBatchSize = 10000
var reparseMessageBatchSize = 1000
// ReparseMessages reparses all messages, updating the MIME structure in
// Message.ParsedBuf.