Skip to content

Commit 07693fd

Browse files
committed
ACP2E-2204: Price indexing performance gradually degrades overtime
- addressed static
1 parent 1d4543f commit 07693fd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ protected function _insertFromTable($sourceTable, $destTable, $where = null)
368368
protected function _emptyTable($table)
369369
{
370370
$connection = $this->getConnection();
371+
// phpcs:ignore Magento2.SQL.RawQuery.FoundRawSql
371372
$connection->query('TRUNCATE TABLE ' . $connection->quoteIdentifier($table));
372373
}
373374

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CustomOptionPriceModifier.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
122122
$query = $select->crossUpdateFromSelect(['i' => $finalPriceTable]);
123123
$connection->query($query);
124124

125+
// phpcs:ignore Magento2.SQL.RawQuery.FoundRawSql
125126
$connection->query('TRUNCATE TABLE ' . $connection->quoteIdentifier($coaTable));
127+
// phpcs:ignore Magento2.SQL.RawQuery.FoundRawSql
126128
$connection->query('TRUNCATE TABLE ' . $connection->quoteIdentifier($copTable));
127129
}
128130

0 commit comments

Comments
 (0)