Try our conversational search powered by Generative AI!

CatalogFeed slow due to GetDiscountPrices

Fixed in

EPiServer.Commerce 13.16.0

(Or a related package)

Created

Nov 20, 2019

Updated

Mar 03, 2020

Area

Core

State

Closed, Fixed and tested


Description

In our performance test for CatalogFeed, profiling shows that GetDiscountPrices alone accounts for 50% of the time spent. It can be worse if a customer has many more promotions, even though that might not be something they want or need.

If discount prices are not necessary, you can add a setting named episerver:personalization.CalculateDiscountPrices with a value = false (it is true by default) to use the normal prices.