document-dataply 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11937,9 +11937,10 @@ var MutationManager = class {
|
|
|
11937
11937
|
batchInsertData.push([item.pk, { k: item.pk, v: indexVal }]);
|
|
11938
11938
|
}
|
|
11939
11939
|
}
|
|
11940
|
+
const initMaxSize = 5e4;
|
|
11940
11941
|
const initChunkSize = Math.min(
|
|
11941
|
-
|
|
11942
|
-
Math.max(
|
|
11942
|
+
initMaxSize,
|
|
11943
|
+
Math.max(initMaxSize, Math.floor(batchInsertData.length / 100 * 5))
|
|
11943
11944
|
);
|
|
11944
11945
|
const chunker = new DeadlineChunker(initChunkSize);
|
|
11945
11946
|
await chunker.processInChunks(batchInsertData, async (chunk) => {
|
package/package.json
CHANGED