Skip to content

Commit 018d259

Browse files
committed
ACP2E-2222: EAV Indexer performance
- implemented solution
1 parent fa66aa7 commit 018d259

File tree

1 file changed

+4
-10
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav

1 file changed

+4
-10
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,12 @@ public function __construct(
7878
/**
7979
* @inheritDoc
8080
*/
81-
public function reindexAttribute($attributeId, $isIndexable = true)
81+
public function reindexEntities($processIds)
8282
{
83-
if (!$isIndexable) {
84-
$this->_removeAttributeIndexData($attributeId);
85-
} else {
86-
$this->clearTemporaryIndexTable();
87-
88-
$this->_prepareIndex(null, $attributeId);
89-
$this->_prepareRelationIndex();
83+
$this->clearTemporaryIndexTable();
9084

91-
$this->_synchronizeAttributeIndexData($attributeId);
92-
}
85+
$this->_prepareIndex($processIds);
86+
$this->_prepareRelationIndex($processIds);
9387

9488
return $this;
9589
}

0 commit comments

Comments
 (0)