Developer forum

Forum » Ecommerce - Standard features » Potential performance improvement

Potential performance improvement

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We have a site (that's been live for more than 1 year) where, for multiple reasons, the integration was done and forced all master products to have at least 1 variant. The scenario is that variants represent "versions", so there's always a variant called "v-01", and some others will have "v-02".

(I'm told the through process is that this ensures some consistency in trusting that there is always a variant ID, rather than having some products with variants, others without and when a product would have a v2, we'd have to turn a "non-variant" product into one)

This all works well.

 

Recently we've identified a considerable amount of DB connections and we tied them to the GetVariantStockSum()

  • The product Stock is requested
  • Which triggers a request to GetVariantStockSum()
  • And then called Services.Products.GetByProductIDs() - which eventually goes to the DB to fecth the AutoIDs

 

Despite being very fast, I wonder if there's something that could be done to avoid these repetitive calls to the DB. Maybe having some cache related to this. These are some of the stats we got from this implementation (notice the amount of requests per hour (for a relatively low volume traffic)

 

Best Regards,

Nuno Aguiar

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Dw9?

I do not have a GetVariantStockSum in DW10 or in Swift 2

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

HI Nicolai,

 

Yes, good point. This is DW9 using Swift v1 (Qosmedix)

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

We will not change this on DW9

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Yes, I understand. Thank you

 

You must be logged in to post in the forum