You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each entry that requires to have references updated, use the rest API to fetch only the entries where the current entry is referenced, and update them.
Context
The migrations are running very slow when there are a lot of entries(even though it should migrate 200 entries from 60k)
The text was updated successfully, but these errors were encountered:
Expected Behavior
When using
updateReferences
in atransformEntriesToType
migration, i would love to have API calls only for the entries that should be affected.Actual Behavior
In a
transformEntriesToType
migration, when using theupdateReferences
, it fetches all the available entries in the space. While this could work for smaller entry amounts, when there are like 60k+, it takes forever.(source: https://github.com/contentful/contentful-migration/blob/master/src/lib/fetcher.ts#L14, https://github.com/contentful/contentful-migration/blob/master/src/lib/intent/entry-transform-to-type.ts#L50)
Possible Solution
For each entry that requires to have references updated, use the rest API to fetch only the entries where the current entry is referenced, and update them.
Context
The migrations are running very slow when there are a lot of entries(even though it should migrate 200 entries from 60k)
The text was updated successfully, but these errors were encountered: