On v4.3 (Azure App Service S2 - 3.5GB Ram, quad-core) with S1 - 50 DTU SQL Azure.
Everything that requires DB access works fairly fast except for Cart.
Any cart addition is painfully slow. Taking 7 to 8 seconds even on localhost.
Implemented everything in performance guide . Obviously, I can't disable discounts or enable cache for prices due to the Product category based discounts requirement of the customer.
Code investigation revealed that the application of discounts is somewhat convoluted with multiple interactions through the entire catalog for each active category-based discount every time. Even though my product catalog is limited (~50 Skus), but have 500+ Product Category based active discounts.
The moment I remove 350 odd discount records, there is a visible improvement. But can't do it on the production system.
I believe my hardware configuration is more than adequate for ~50 Sku catalog.
What are the ways, I can improve the Cart performance here?
Are there any other configuration options apart from the ones mentioned in the performance guide?
If customization is the only way, what exactly I need to do get the performance up for the cart?