Skip to content

Commit d521015

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-96242: High Database Load for Sales Rule Validation
1 parent 09c9fcc commit d521015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function setValidationFilter(
222222
Select::TYPE_CONDITION
223223
);
224224
$selectClone->where($noCouponWhereCondition, null, Select::TYPE_CONDITION);
225-
$select = $this->getConnection()->select()->union([$select, $selectClone]);
225+
$this->_select = $this->getConnection()->select()->union([$select, $selectClone]);
226226
} else {
227227
$this->addFieldToFilter(
228228
'main_table.coupon_type',

0 commit comments

Comments
 (0)