We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c7577 commit 48846adCopy full SHA for 48846ad
modules/module-mongodb-storage/src/storage/implementation/MongoSyncBucketStorage.ts
@@ -947,7 +947,9 @@ export class MongoSyncBucketStorage
947
max: 50,
948
maxSize: 10 * 1024 * 1024,
949
sizeCalculation: (value: CheckpointChanges) => {
950
- return 100 + [...value.updatedParameterLookups].reduce<number>((a, b) => a + b.length, 0);
+ const paramSize = [...value.updatedParameterLookups].reduce<number>((a, b) => a + b.length, 0);
951
+ const bucketSize = [...value.updatedDataBuckets].reduce<number>((a, b) => a + b.length, 0);
952
+ return 100 + paramSize + bucketSize;
953
},
954
fetchMethod: async (_key, _staleValue, options) => {
955
return this.getCheckpointChangesInternal(options.context.options);
0 commit comments