HPC-9551: Chunk model version's bulk update #250
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When publishing custom version on a plan, a bulk update is triggered on
versionModels
, includingattachmentVersion
. However, when performing a bulk update with over 100k records which is more than batch limit, it throws a "bind message has 100K+ parameter formats but 0 parameters" error.To address this, I'm implementing an update to
versionModels
in batches, as demonstrated practice in the following commit.Additionally, the batch limit on my local environment is
2^16
, and I assume the production environment has the same limit. However, the demo and blue dev environments have a batch limit of around2^15
. Therefore, I'm using the lower number here.