Developer forum

Forum » Dynamicweb 10 » All ProductFields initiated for all ProductFields

All ProductFields initiated for all ProductFields

Anders Ebdrup
Reply

Dear DynamicWeb,

We see a performance issue in this method where SetupFieldViewModel is initiated for every ProductField and not just once, where the call to SetupFieldViewModel should be placed outside this foreach: "foreach (ProductField field in fields)":

So for our solution with 251 productfields, we have 231 requests to the database trying to find the default image in EcomDetails - do to this line:

See this example where we have all these calls to the database:

 

I hope this can be fixed?

 

Best regards, Anders


Replies

 
Anders Ebdrup
Reply

Dear DynamicWeb,

 

Did you have any chance to look into this issue?

 

Best regards, Anders

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Anders

Yes - sorry about the missing information.

The issues has been adressed in https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_workitems/edit/24444

It should be released with 10.16

Votes for this answer: 1
 
Anders Ebdrup
Reply

Hi Nicolai,

 

When can I expect this fix to be released, as it is causing serious performance issues?

 

Best regards, Anders

 

You must be logged in to post in the forum