From 3d3ac63076997c59e27e2727c0e1963f9cc2fe8d Mon Sep 17 00:00:00 2001 From: Nathan Dobbin Date: Wed, 8 Nov 2023 00:43:03 +1300 Subject: [PATCH] Fix memory exhaustion when recreating duplicates-index (#512) --- src/DuplicatesIndex/DefaultMariaDbDuplicatesIndex.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DuplicatesIndex/DefaultMariaDbDuplicatesIndex.php b/src/DuplicatesIndex/DefaultMariaDbDuplicatesIndex.php index 5c8e3eea..f1bc3b83 100644 --- a/src/DuplicatesIndex/DefaultMariaDbDuplicatesIndex.php +++ b/src/DuplicatesIndex/DefaultMariaDbDuplicatesIndex.php @@ -117,6 +117,8 @@ public function recreateIndex() $this->updateDuplicateIndexForCustomer($customer, true); } + + \Pimcore::collectGarbage(); } }