Skip to content

Commit 1af05e1

Browse files
committed
ACP2E-3449: Slow query is executed when product widget is included via pagebuilder
1 parent 664f030 commit 1af05e1

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ public static function attachConditionToCollectionDataProvider(): array
140140
'value' => 'sku1,sku2,sku3,sku4,sku5',
141141
]
142142
],
143-
"WHERE ((((`e`.`entity_id` IN (SELECT `catalog_category_product`.`product_id` FROM " .
144-
"`catalog_category_product` WHERE (category_id IN ('3')))) AND(`e`.`entity_id` = '2017-09-15 00:00:00')"
145-
." AND(`e`.`sku` IN ('sku1', 'sku2', 'sku3', 'sku4', 'sku5')) ))) AND (e.created_in <= 1) AND " .
146-
"(e.updated_in > 1) ",
143+
"WHERE (((`e`.`entity_id` IN (SELECT `catalog_category_product`.`product_id` FROM `catalog_category_product` WHERE (category_id IN ('3')))) AND(`e`.`entity_id` = '2017-09-15 00:00:00') AND(`e`.`sku` IN ('sku1', 'sku2', 'sku3', 'sku4', 'sku5')) ))",
147144
"ORDER BY (FIELD(`e`.`sku`, 'sku1', 'sku2', 'sku3', 'sku4', 'sku5'))"
148145
],
149146
[

0 commit comments

Comments
 (0)