Affects Version/s: 7.1.10 DXP GA1, 7.1.X, Master
Steps to reproduce it:
- Startup 7.0 or DXP
- Go to Documents and Media and create a new document type with one field
- Create 1000 documents based on that document type
- Upgrade to master/7.1
The process v1_1_3.UpgradeDDMStorageLink takes a lot of time.
The process v1_1_3.UpgradeDDMStorageLink takes just a few seconds to be completed.
The process v1_1_3.UpgradeDDMStorageLink updates the structureVersionId in the table DDMStorageLink adding the proper value for all the records with the same structureId:
However we are currently executing the previous update once per DDMStorageLink record and this means, for example, that having 100000 documents generated for a document type we will execute the same update 100000 times instead of just one.