Skip to content

Commit 9fb6e86

Browse files
committed
MC-37816: Performance - endless scheduled export of catalog with 100k+ products
1 parent 632a7c6 commit 9fb6e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/DownloadableImportExport/Model/Export/RowCustomizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function prepareData($collection, $productIds): void
8282
->addAttributeToSelect('samples_title');
8383
// set global scope during export
8484
$this->storeManager->setCurrentStore(Store::DEFAULT_STORE_ID);
85-
foreach ($collection as $product) {
85+
foreach ($productCollection as $product) {
8686
$productLinks = $this->linkRepository->getLinksByProduct($product);
8787
$productSamples = $this->sampleRepository->getSamplesByProduct($product);
8888
$this->downloadableData[$product->getId()] = [];

0 commit comments

Comments
 (0)