From 511ad16b6de722977bf0b5a434d92af9d2367a22 Mon Sep 17 00:00:00 2001 From: Oscar Recio Date: Wed, 1 Jun 2022 14:37:19 +0200 Subject: [PATCH] MariaDB Casting is too slow When the MariaDB is try to cast the entitys_ids from string to integer is to slow, Check: https://github.com/magento/magento2/pull/27129 --- .../Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php index ce097dd95d772..4b0868fadba9c 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php @@ -343,7 +343,7 @@ protected function _prepareMultiselectIndex($entityIds = null, $attributeId = nu $this->_addAttributeToSelect($select, 'status', "pvd.{$productIdField}", 'cs.store_id', $statusCond); if ($entityIds !== null) { - $select->where('cpe.entity_id IN(?)', $entityIds); + $select->where('cpe.entity_id IN(?)', $entityIds, \Zend_Db::INT_TYPE); } /** * Add additional external limitation