sync: use custom bson serializer for SyncItem for perf

This commit is contained in:
Abdullah Atta committed 2024-06-07 11:00:48 +05:00
1 parent 9d2c54ad33
commit 90b9012c32
3 files changed
+103 -44

No files matched your search

+1
View File
@@ -159,6 +159,7 @@ namespace Notesnook.API
options.CacheDuration = TimeSpan.FromMinutes(30);
});
BsonSerializer.RegisterSerializer(new SyncItemBsonSerializer());
if (!BsonClassMap.IsClassMapRegistered(typeof(UserSettings)))
BsonClassMap.RegisterClassMap<UserSettings>();