Skip to content

Commit 511ad16

Browse files
authored
MariaDB Casting is too slow
When the MariaDB is try to cast the entitys_ids from string to integer is to slow, Check: #27129
1 parent 1090911 commit 511ad16

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected function _prepareMultiselectIndex($entityIds = null, $attributeId = nu
343343
$this->_addAttributeToSelect($select, 'status', "pvd.{$productIdField}", 'cs.store_id', $statusCond);
344344

345345
if ($entityIds !== null) {
346-
$select->where('cpe.entity_id IN(?)', $entityIds);
346+
$select->where('cpe.entity_id IN(?)', $entityIds, \Zend_Db::INT_TYPE);
347347
}
348348
/**
349349
* Add additional external limitation

0 commit comments

Comments
 (0)