Developer forum

Forum » Ecommerce - Standard features » Poor performance with many related products

Poor performance with many related products

Aki Ruuskanen
Aki Ruuskanen
Reply

We have a Rapido 3.4 solution in DW 9.9 and experience poor performance  (a TTFB around 15 sec) on product detail pages where the product have a lot of related products. For example 25 products in 8 relationgroups. 

Is there anything that we can do to increase the performance?

The example product:  http://industrilasprod.softgear.se/products/handles/defeater-handles/defeater-handle-compact-stainless-steel-36-mm

We do have som custom blocks there but the TTFB stays the same even if I remove them. 

Regards / Aki

 


Replies

 
Nicolai Pedersen
Reply

Hi Aki

Running a debug true reveals a lot of rendering of product categories - also for many more products than shown.

I cannot access your templates as your are hostin yourself and your filemanager goes into exception. But did you by any chance add some variant logic to some of the custom blocks?

I would start to look at that.

BR Nicolai

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Our IT-guy was working in the solution just now. Thats propably the reason for exception, it should work better now. 

We have some custom blocks that renders, among other things, related products, but even if remove the all custom blocks the performance is the same. 

/Aki

 

 

 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

I cannot see that the debug=true reveals any bottlenecks. 

Ending Template.Output (e:\webroot\industrilas.com\Files\Templates\Designs\Rapido\Paragraph\Paragraph.cshtml) - took: 15859.4077 ms.

/Aki

 
Nicolai Pedersen
Reply

Hi Aki.

If I remove the 2 blocks related to related products, performance is back to normal. See dump.

So you have to look into those and see wheat triggers it.

BR Nicolai

Capture.JPG
 
Aki Ruuskanen
Aki Ruuskanen
Reply

The "Related.cshtml" is a standard Rapido template. And there is no other custom code that is involved. 

The related products have a lot of variants (combined as a family in PIM) and the variants has a lot of custom fields (of type property). Can that be a reason for the rendering of related products to take time?

/Aki 

 
Nicolai Pedersen
Reply

Yes, that is probably why. It might be a loop of something in the related product template that causes the issue - or as I can see from the debug trace something related to (maybe a lot of) category fields.

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Alright. We propably need to retrive the related products in another way. Thanks for your input. 

Regards / Aki

 

You must be logged in to post in the forum