Skip to content

Commit eb31b1f

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ public function setValidationFilter(
221221
Select::TYPE_CONDITION
222222
);
223223
$selectClone->where($noCouponWhereCondition, null, Select::TYPE_CONDITION);
224-
$this->_select = $this->getConnection()->select()->union([$select, $selectClone]);
224+
$select = $this->getConnection()->select()->union([$select, $selectClone]);
225+
$this->_select = $select;
225226
} else {
226227
$this->addFieldToFilter(
227228
'main_table.coupon_type',

0 commit comments

Comments
 (0)