Skip to content

Commit 7559650

Browse files
committed
ACP2E-3449: Slow query is executed when product widget is included via pagebuilder
1 parent 6f395e0 commit 7559650

File tree

1 file changed

+4
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Rule/Model/Condition/Sql

1 file changed

+4
-3
lines changed

dev/tests/integration/testsuite/Magento/Rule/Model/Condition/Sql/BuilderTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ public static function attachConditionToCollectionDataProvider(): array
214214
],
215215
"(((`e`.`entity_id` IN (SELECT `catalog_category_product`.`product_id` FROM " .
216216
"`catalog_category_product` WHERE (category_id IN ('3')))) " .
217-
"AND(`e`.`sku` IN ('sku1', 'sku2', 'sku3')) AND(`at_multi_select_attr`.`value` IN ('4', '5') OR " .
218-
"(FIND_IN_SET ('4', `at_multi_select_attr`.`value`) > 0) OR " .
219-
"(FIND_IN_SET ('5', `at_multi_select_attr`.`value`) > 0))",
217+
"AND(`e`.`sku` IN ('sku1', 'sku2', 'sku3')) AND(`at_multi_select_attr`.`value` IN " .
218+
"('#optionAtrId1#', '#optionAtrId2#') OR " .
219+
"(FIND_IN_SET ('#optionAtrId1#', `at_multi_select_attr`.`value`) > 0) OR " .
220+
"(FIND_IN_SET ('#optionAtrId2#', `at_multi_select_attr`.`value`) > 0))",
220221
"ORDER BY (FIELD(`e`.`sku`, 'sku1', 'sku2', 'sku3'))"
221222
]
222223
];

0 commit comments

Comments
 (0)