Out of PHP memory when running aggregator_post_update_add_item_uuids()

Issue information

From user: it-cru

Contribution record

Fork management

Problem/Motivation

I'm running a website with over 60k aggregator item entities and during testing the update from 1.0.2 to 1.1.0 the aggregator_post_update_add_item_uuids() runs into PHP out of memory issues.

I'm using a hook_ENTITY_TYPE_presave() for aggregator_item entity which use additional memory during update process, but in general this update should be fail safe with high number of aggregator_item entities.

Steps to reproduce

Proposed resolution

Use $sandbox batch processing in aggregator_post_update_add_item_uuids() to create UUIDs for all existing aggregator item entities.

Remaining tasks

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information