appwrite-utils-cli 0.0.45 → 0.0.46
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.
|
@@ -78,7 +78,7 @@ export class ImportController {
|
|
|
78
78
|
dataLoader.getCollectionKey(collection.name);
|
|
79
79
|
const importOperationId = dataLoader.collectionImportOperations.get(dataLoader.getCollectionKey(collection.name));
|
|
80
80
|
const createBatches = (finalData) => {
|
|
81
|
-
let maxBatchLength =
|
|
81
|
+
let maxBatchLength = 100;
|
|
82
82
|
const finalBatches = [];
|
|
83
83
|
for (let i = 0; i < finalData.length; i++) {
|
|
84
84
|
if (i % maxBatchLength === 0) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appwrite-utils-cli",
|
|
3
3
|
"description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.46",
|
|
5
5
|
"main": "src/main.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -125,7 +125,7 @@ export class ImportController {
|
|
|
125
125
|
dataLoader.getCollectionKey(collection.name)
|
|
126
126
|
);
|
|
127
127
|
const createBatches = (finalData: CollectionImportData["data"]) => {
|
|
128
|
-
let maxBatchLength =
|
|
128
|
+
let maxBatchLength = 100;
|
|
129
129
|
const finalBatches: CollectionImportData["data"][] = [];
|
|
130
130
|
for (let i = 0; i < finalData.length; i++) {
|
|
131
131
|
if (i % maxBatchLength === 0) {
|