Developer forum

Forum » Dynamicweb 10 » Disounts slowing down product dwapi calls

Disounts slowing down product dwapi calls

Jóhannes Þorkell Tómasson
Reply

We are launching a new Dynamicweb solution soon and are syncing around 30000 discounts from BC into DW. Seemingly, whenever the DiscountService is refreshed the next dwapi product calls (/search and /{id} at least) become very slow, taking a couple of minutes at least. It wouldn't be a big problem (we can warm the dwapi up as a part of the Discounts sync scheduled task) except that anytime a product is modified through the Admin UI the next dwapi products call will be slow again.

We're going live with this solution at the end of next week and our client will be using DW for all their PIM functionality (they're replacing their current PIM solution with DW as a part of their new ecommerce shop). Therefore we need some way to make the dwapi calls faster urgently.

After the first (slow) request following requests are normal (very fast). We don't know the exact cause but like I said we've identified at least two triggers for this problem:

  • When the EcomService cache is refreshed
  • When any product data is modified through the Admin UI in the Products area.

Best Regards, Jóhannes


Replies

 
Jóhannes Þorkell Tómasson
Reply

We fixed it; assigning product groups to discounts was causing the slowness. We just mapped products belonging to discount groups to the discounts directly instead of using groups and it seems to work the same and is much faster.

 

You must be logged in to post in the forum