We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9b79a commit 9cceaefCopy full SHA for 9cceaef
app/code/Magento/CatalogImportExport/Model/Export/Product.php
@@ -772,14 +772,20 @@ protected function getItemsPerPage()
772
$memoryUsagePercent = 0.8;
773
// Minimum Products limit
774
$minProductsLimit = 500;
775
+ // Maximal Products limit
776
+ $maxProductsLimit = 3000;
777
778
$this->_itemsPerPage = intval(
779
($memoryLimit * $memoryUsagePercent - memory_get_usage(true)) / $memoryPerProduct
780
);
781
if ($this->_itemsPerPage < $minProductsLimit) {
782
$this->_itemsPerPage = $minProductsLimit;
783
}
784
+ if ($this->_itemsPerPage > $maxProductsLimit) {
785
+ $this->_itemsPerPage = $maxProductsLimit;
786
+ }
787
788
+
789
return $this->_itemsPerPage;
790
791
0 commit comments