From 7698ec4ba8693efae121c8d95a0a698657baa185 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Wed, 6 Sep 2023 08:20:55 -0700 Subject: [PATCH 1/3] fix(import): increase reference strengthening concurrency to 30 --- packages/@sanity/import/src/references.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/import/src/references.js b/packages/@sanity/import/src/references.js index 6ba8979f733..878096efa44 100644 --- a/packages/@sanity/import/src/references.js +++ b/packages/@sanity/import/src/references.js @@ -7,7 +7,7 @@ const progressStepper = require('./util/progressStepper') const retryOnFailure = require('./util/retryOnFailure') const suffixTag = require('./util/suffixTag') -const STRENGTHEN_CONCURRENCY = 1 +const STRENGTHEN_CONCURRENCY = 30 const STRENGTHEN_BATCH_SIZE = 30 function getStrongRefs(doc) { From c3ee26ccfeaf0fbc1c5a3e31cb5d54a1e2dd831d Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Wed, 13 Sep 2023 10:26:07 -0700 Subject: [PATCH 2/3] fix(import): increase asset patching concurrency --- packages/@sanity/import/src/uploadAssets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/import/src/uploadAssets.js b/packages/@sanity/import/src/uploadAssets.js index 08a7826d62c..5bfa2946a0a 100644 --- a/packages/@sanity/import/src/uploadAssets.js +++ b/packages/@sanity/import/src/uploadAssets.js @@ -10,7 +10,7 @@ const urlExists = require('./util/urlExists') const suffixTag = require('./util/suffixTag') const ASSET_UPLOAD_CONCURRENCY = 8 -const ASSET_PATCH_CONCURRENCY = 1 +const ASSET_PATCH_CONCURRENCY = 30 const ASSET_PATCH_BATCH_SIZE = 50 async function uploadAssets(assets, options) { From 0cdad8b43885e31b4a9149cd53cf4f93ac46504b Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Wed, 13 Sep 2023 10:26:19 -0700 Subject: [PATCH 3/3] fix(import): increase document import concurrency --- packages/@sanity/import/src/importBatches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/import/src/importBatches.js b/packages/@sanity/import/src/importBatches.js index 7902decfb74..2d05ac8da39 100644 --- a/packages/@sanity/import/src/importBatches.js +++ b/packages/@sanity/import/src/importBatches.js @@ -3,7 +3,7 @@ const progressStepper = require('./util/progressStepper') const retryOnFailure = require('./util/retryOnFailure') const suffixTag = require('./util/suffixTag') -const DOCUMENT_IMPORT_CONCURRENCY = 3 +const DOCUMENT_IMPORT_CONCURRENCY = 6 async function importBatches(batches, options) { const progress = progressStepper(options.onProgress, {