Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete TenantMediaSet in Batch and safeguard loading detached media (#…
…1990) #### Summary The PR consists of two parts: 1. Safeguard loading detached media. Loading detached media to temp record could fail (observed in Telemetry) with duplicated ID, using `if ... then ...` so safeguard the insert. 2. Delete Tenant Media Set in batch and Commit between each batch. Just like what we did with Tenant Media, providing the ability to clean up even when there are large number of records. The code change should be covered by test case: `EnsureDetachedMediaAndMediaSetAreCleanedUp` #### Work Item(s) Fixes [AB#548323](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/548323)
- Loading branch information