Developer forum

Forum » Ecommerce - Standard features » Discounts and CPU usage

Discounts and CPU usage

Kim Sørensen
Kim Sørensen
Reply

We have experianced that the Discounts on 9.3.6 uses alot of CPU power.

We took a memory dump from the server, and did a little digging in the source code, and it looks like you loop through all discounts and not only the active ones, then cache them, only to load them afterwards, and match them with 4 regex and some compare functions.

Our guess it that this might be the issue.


Replies

 
Nicolai Pedersen
Reply

ok, thanks...

We did quite a number of changes for 9.4, so if you want us to look into this, please take a look at the same things in 9.4 or provide some specifics so we can evaluate if the issue is still around.

I.e. what kind of discounts (salesdiscounts or orderdiscounts), number of discounts, your findings and other relevant information.

Thanks, Nicolai

 

You must be logged in to post in the forum