From 2d6fd6ad0a74e64b48007bea2dbcc9a6c68552c9 Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Tue, 11 Jun 2024 23:14:21 +0200 Subject: [PATCH] Reduce batch size for replication. --- packages/service-core/src/storage/mongo/OperationBatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service-core/src/storage/mongo/OperationBatch.ts b/packages/service-core/src/storage/mongo/OperationBatch.ts index 0de8f6e..aaea58a 100644 --- a/packages/service-core/src/storage/mongo/OperationBatch.ts +++ b/packages/service-core/src/storage/mongo/OperationBatch.ts @@ -12,7 +12,7 @@ const MAX_BATCH_COUNT = 2000; /** * Maximum size of operations in the batch (estimated). */ -const MAX_RECORD_BATCH_SIZE = 14_000_000; +const MAX_RECORD_BATCH_SIZE = 5_000_000; /** * Maximum size of size of current_data documents we lookup at a time.