Hi:
I have a webpage that goes slow, debuging the pages i found that a sql statement runs 190 times in every page , even if does not contains any product.
This is the SQL statement:
DECLARE @p0 INT = 10, @p1 NVARCHAR(8) = N'GROUP501', @p2 NVARCHAR(1) = N'1' SELECT TOP (@p0) EcomProducts.*, EcomGroupProductRelation.GroupProductRelationSorting AS GroupProductRelationSorting FROM EcomProducts INNER JOIN EcomGroupProductRelation ON EcomGroupProductRelation.GroupProductRelationProductID = EcomProducts.ProductID WHERE EcomProducts.ProductLanguageID = 'LANG1' AND EcomGroupProductRelation.GroupProductRelationGroupID = @p1 AND (EcomProducts.ProductVariantID IS NULL OR EcomProducts.ProductVariantID = '') AND (ISNULL(EcomProducts.ProductHidden, 0) <> @p2) ORDER BY EcomGroupProductRelation.GroupProductRelationSorting
All this calls are made inside the Page.parsed.cshtml page.
Following the Stacktrace of these calls i found that the call is made in the following funcion
Im using dw 9.9.6 and rapido and Rapido 3.1
Any clue or reason why this statement is executed so may times on any page?
Regards,
Jose