Skip to content

Instantly share code, notes, and snippets.

@adamzero1
Last active March 16, 2021 13:45
Show Gist options
  • Save adamzero1/2a680766138c8e5bbf2caddc908e9207 to your computer and use it in GitHub Desktop.
Save adamzero1/2a680766138c8e5bbf2caddc908e9207 to your computer and use it in GitHub Desktop.
Export Out Of Memory
--- Model/Export/Product.php 2021-03-16 13:35:33.809000000 +0000
+++ Model/Export/Product.php 2021-03-16 13:36:09.819832268 +0000
@@ -949,8 +949,9 @@
$productIds = array_keys($rawData);
$stockItemRows = $this->prepareCatalogInventory($productIds);
+ $entityCollection = clone $this->_getEntityCollection();
$this->rowCustomizer->prepareData(
- $this->_prepareEntityCollection($this->_entityCollectionFactory->create()),
+ $entityCollection,
$productIds
);
{
"extra": {
"patches": {
"magento/module-catalog-import-export": {
"Export out of memory (https://github.com/magento/magento2/pull/32493)": "patches/export_out_of_memory_issue.patch"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment