Skip to content

Commit

Permalink
fix(import): increase concurrency of patching, document creation (#4900)
Browse files Browse the repository at this point in the history
* fix(import): increase reference strengthening concurrency to 30

* fix(import): increase asset patching concurrency

* fix(import): increase document import concurrency
  • Loading branch information
rexxars committed Sep 13, 2023
1 parent 47f3be9 commit 0f52cfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@sanity/import/src/importBatches.js
Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/import/src/references.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/import/src/uploadAssets.js
Expand Up @@ -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) {
Expand Down

2 comments on commit 0f52cfc

@vercel
Copy link

@vercel vercel bot commented on 0f52cfc Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

performance-studio – ./

performance-studio-git-next.sanity.build
performance-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 0f52cfc Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.