Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ec0210e

Browse files
committed
MAGETWO-10920: Sku => Entity_id relations are fetched inefficiently when inserting attributes values during product import.
1 parent 2bbad00 commit ec0210e

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,15 +1292,15 @@ protected function _saveLinks()
12921292
*/
12931293
protected function _saveProductAttributes(array $attributesData)
12941294
{
1295-
$productEntityLinkField = $this->getProductEntityLinkField();
1295+
$linkField = $this->getProductEntityLinkField();
12961296
foreach ($attributesData as $tableName => $skuData) {
12971297
$tableData = [];
12981298
foreach ($skuData as $sku => $attributes) {
1299-
$linkId = $this->_oldSku[strtolower($sku)][$productEntityLinkField];
1299+
$linkId = $this->_oldSku[strtolower($sku)][$linkField];
13001300
foreach ($attributes as $attributeId => $storeValues) {
13011301
foreach ($storeValues as $storeId => $storeValue) {
13021302
$tableData[] = [
1303-
$productEntityLinkField => $linkId,
1303+
$linkField => $linkId,
13041304
'attribute_id' => $attributeId,
13051305
'store_id' => $storeId,
13061306
'value' => $storeValue,

0 commit comments

Comments
 (0)