This force the queue to be disabled during a reimport. This allows us to reimport lots of records (1M+) without having to worry about race conditions (performing the moveIndex before all records have been imported).
We can disable the queue here as well because it's meant to improve performance during requests, but this script is never called during requests so we don't have to queue the operations, especially since it can lead to issues when you have a big number of records.
Describe your change
This force the queue to be disabled during a reimport. This allows us to reimport lots of records (1M+) without having to worry about race conditions (performing the
moveIndex
before all records have been imported).We can disable the queue here as well because it's meant to improve performance during requests, but this script is never called during requests so we don't have to queue the operations, especially since it can lead to issues when you have a big number of records.