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 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
- 5e4,
11942
- Math.max(1, Math.floor(batchInsertData.length / 100 * 5))
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-dataply",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Simple and powerful JSON document database supporting complex queries and flexible indexing policies.",
5
5
  "license": "MIT",
6
6
  "author": "izure <admin@izure.org>",