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