mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 18:49:42 +02:00
sync: use custom bson serializer for SyncItem for perf
This commit is contained in:
1 parent
9d2c54ad33
commit
90b9012c32
3 files changed
+103
-44
No files matched your search
@@ -159,6 +159,7 @@ namespace Notesnook.API
|
||||
options.CacheDuration = TimeSpan.FromMinutes(30);
|
||||
});
|
||||
|
||||
BsonSerializer.RegisterSerializer(new SyncItemBsonSerializer());
|
||||
if (!BsonClassMap.IsClassMapRegistered(typeof(UserSettings)))
|
||||
BsonClassMap.RegisterClassMap<UserSettings>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user