Skip to content

Commit dabf978

Browse files
committed
MCP-946: Price Index optimization
-Fix Price Index
1 parent 5cca5d6 commit dabf978

File tree

1 file changed

+15
-1
lines changed
  • app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Indexer/Price

1 file changed

+15
-1
lines changed

app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Indexer/Price/Grouped.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,21 @@ public function executeByDimensions(array $dimensions, \Traversable $entityIds)
104104
'tierPriceField' => 'tier_price',
105105
]);
106106
$select = $this->prepareGroupedProductPriceDataSelect($dimensions, iterator_to_array($entityIds));
107-
$this->tableMaintainer->insertFromSelect($select, $temporaryPriceTable->getTableName(), []);
107+
$this->tableMaintainer->insertFromSelect(
108+
$select,
109+
$temporaryPriceTable->getTableName(),
110+
[
111+
"entity_id",
112+
"customer_group_id",
113+
"website_id",
114+
"tax_class_id",
115+
"price",
116+
"final_price",
117+
"min_price",
118+
"max_price",
119+
"tier_price",
120+
]
121+
);
108122
}
109123

110124
/**

0 commit comments

Comments
 (0)