diff --git a/src/Messenger/DataImporterHandler.php b/src/Messenger/DataImporterHandler.php index 98a28707..a25c79f9 100644 --- a/src/Messenger/DataImporterHandler.php +++ b/src/Messenger/DataImporterHandler.php @@ -50,13 +50,8 @@ public function __construct( public function __invoke(DataImporterMessage $message) { - foreach ($message->getIds() as $i => $id) { + foreach ($message->getIds() as $id) { $this->importProcessingService->processQueueItem($id); - - // call the garbage collector to avoid too many connections & memory issue - if (($i + 1) % 200 === 0) { - \Pimcore::collectGarbage(); - } } $this->removeMessage($message->getMessageId());