mirror of
https://github.com/mjl-/mox.git
synced 2025-07-17 00:46:08 +03:00
use smaller batch size when reparsing all messages, to stay response when making changes on slower machines
This commit is contained in:
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// We process messages in database transactions in batches. Otherwise, for accounts
|
// We process messages in database transactions in batches. Otherwise, for accounts
|
||||||
// with many messages, we would get slowdown with many unwritten blocks in memory.
|
// 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
|
// ReparseMessages reparses all messages, updating the MIME structure in
|
||||||
// Message.ParsedBuf.
|
// Message.ParsedBuf.
|
||||||
|
Reference in New Issue
Block a user