Skip to content

Commit 4b1b1dc

Browse files
committed
Price Indexer Performance Issue With Out of Stock Products
- Relates to issue #24414 - Made changes based on feedback on PR
1 parent 7563129 commit 4b1b1dc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,7 @@ 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-
if ($entityIds !== null) {
108-
if (count($entityIds) > 1) {
109-
$select->where('stock_item.product_id in (?)', $entityIds);
110-
} else {
111-
$select->where('stock_item.product_id = ?', $entityIds);
112-
}
113-
}
107+
$select->where('stock_item.product_id in (?)', $entityIds);
114108

115109
$select->group('stock_item.product_id');
116110
$select->having('max_is_in_stock = 0');

0 commit comments

Comments
 (0)