document-dataply 0.0.11 → 0.0.12
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 +5 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11937,8 +11937,11 @@ var MutationManager = class {
|
|
|
11937
11937
|
batchInsertData.push([item.pk, { k: item.pk, v: indexVal }]);
|
|
11938
11938
|
}
|
|
11939
11939
|
}
|
|
11940
|
-
const
|
|
11941
|
-
|
|
11940
|
+
const initChunkSize = Math.min(
|
|
11941
|
+
5e4,
|
|
11942
|
+
Math.max(1, Math.floor(batchInsertData.length / 100 * 5))
|
|
11943
|
+
);
|
|
11944
|
+
const chunker = new DeadlineChunker(initChunkSize);
|
|
11942
11945
|
await chunker.processInChunks(batchInsertData, async (chunk) => {
|
|
11943
11946
|
const [error] = await catchPromise(treeTx.batchInsert(chunk));
|
|
11944
11947
|
if (error) {
|
package/package.json
CHANGED