-
- Downloads
[FIX] sale_coupon: perf improvement
_get_applicable_no_code_promo_programs always returns a subset of _get_applicable_programs ... We can thus avoid summing the results from the two methods, which triggered unnecessary operations and resulted in a recordset with useless duplicates... Furthermore, as _get_applicable_programs returned recordset is only used to compare to other recordsets (substraction or comparison), it doesn't need to be sorted by the model order. We can thus safely order the result by id instead, to reduce the query complexity.
Please register or sign in to comment