It would be better, I think, to break the list of deletions into manageable chunks of 100 or so, rather than doing one at a time.
Something like this:
public function deleteMultiple($pids) { foreach (array_chunk($pids, 100) as $chunk) { $this->entityTypeManager->getStorage('path_alias')->delete($this->entityTypeManager->getStorage('path_alias')->loadMultiple($chunk)); } }
- @solideogloria opened merge request.
- Status changed to Needs review
over 1 year ago 3:06pm 21 March 2023