Skip to content

Commit 11da0ea

Browse files
committed
#12804: [GitHub] Performance: Improve attribute deletion to take advantage of indexes
1 parent 25fc7e8 commit 11da0ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/AttributeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testDeleteEntity()
9696
}
9797

9898
/**
99-
* Retrieve eav attribute row.
99+
* Retrieve eav attribute row.
100100
*
101101
* @param int $entityTypeId
102102
* @param int $attributeSetId
@@ -107,7 +107,7 @@ private function getEavEntityAttributeRow($entityTypeId, $attributeSetId, $attri
107107
{
108108
$connection = $this->productResource->getConnection();
109109
$select = $connection->select()
110-
->from($connection->getTableName('eav_entity_attribute'))
110+
->from($this->productResource->getTable('eav_entity_attribute'))
111111
->where('attribute_set_id=?', $attributeSetId)
112112
->where('attribute_id=?', $attributeId)
113113
->where('entity_type_id=?', $entityTypeId);
@@ -127,7 +127,7 @@ private function getProductAttributeValues($attributeId, $productId, $table)
127127
{
128128
$connection = $this->productResource->getConnection();
129129
$select = $connection->select()
130-
->from($connection->getTableName($table))
130+
->from($this->productResource->getTable($table))
131131
->where('attribute_id=?', $attributeId)
132132
->where('entity_id=?', $productId);
133133

0 commit comments

Comments
 (0)