Out of PHP memory when running aggregator_post_update_add_item_uuids()
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3393690. -->
Reported by: [it-cru](https://www.drupal.org/user/324945)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<p>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.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Use $sandbox batch processing in aggregator_post_update_add_item_uuids() to create UUIDs for all existing aggregator item entities.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue