Skip to content

Commit

Permalink
MC-41647: SKU Search very slow on Admin Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Iegorov committed Apr 6, 2021
1 parent 94f2661 commit 1bc28f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,14 @@ protected function _getSearchEntityIdsSql($query, $searchOnlyInCurrentStore = tr
//force index statement not implemented in framework
// phpcs:ignore Magento2.SQL.RawQuery
$select = sprintf(
'SELECT `t1`.`%s` FROM `%s` AS `t1` FORCE INDEX(%s) LEFT JOIN `%s` AS `t2`
'SELECT `t1`.`%s` FROM `%s` AS `t1` FORCE INDEX(%s)
LEFT JOIN `%s` AS `t2` FORCE INDEX(%s)
ON %s WHERE %s AND %s AND (%s)',
$linkField,
$table,
$preparedIndexEnforcements[$table],
$table,
$preparedIndexEnforcements[$table],
$joinCondition,
$condition1,
$condition2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* @magentoAppArea adminhtml
* @magentoDbIsolation disabled
* @magentoDbIsolation enabled
*/
class IndexTest extends \Magento\TestFramework\TestCase\AbstractBackendController
{
Expand Down

0 comments on commit 1bc28f4

Please sign in to comment.