Skip to content

Commit 9c9d286

Browse files
committed
Merge remote-tracking branch 'origin/fix/catalog-inventory-price-indexer-performance-fix' into fix/catalog-inventory-price-indexer-performance-fix
# Conflicts: # app/code/Magento/CatalogInventory/Model/Indexer/ProductPriceIndexFilter.php
2 parents eaa5f74 + 6677a49 commit 9c9d286

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/ProductPriceIndexFilter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
104104
$select->where('stock_item.use_config_manage_stock = 0 AND stock_item.manage_stock = 1');
105105
}
106106

107-
$select->where('stock_item.product_id in (?)', $entityIds);
107+
if (!empty($entityIds)) {
108+
$select->where('stock_item.product_id in (?)', $entityIds);
109+
}
110+
108111
$select->group('stock_item.product_id');
109112
$select->having('max_is_in_stock = 0');
110113

0 commit comments

Comments
 (0)