From 7e50311c92b50245cd33c808f9691b73199a7016 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 30 Dec 2025 12:52:36 +0500 Subject: [PATCH] sync: reduce device ids chunk size --- Notesnook.API/Services/SyncDeviceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notesnook.API/Services/SyncDeviceService.cs b/Notesnook.API/Services/SyncDeviceService.cs index bd99082..fa71816 100644 --- a/Notesnook.API/Services/SyncDeviceService.cs +++ b/Notesnook.API/Services/SyncDeviceService.cs @@ -73,7 +73,7 @@ namespace Notesnook.API.Services return result; } - const int MaxIdsPerChunk = 400_000; + const int MaxIdsPerChunk = 25_000; public async Task AppendIdsAsync(string userId, string deviceId, string key, IEnumerable ids) { var filter = DeviceIdsChunkFilter(userId, deviceId, key) & Builders.Filter.Where(x => x.Ids.Length < MaxIdsPerChunk);