- 34
Hi.
My azure database is kneeling. The following query is running constantly, and for a long time.
INSERT INTO #FilterableSpecs ([SpecificationAttributeOptionId])
SELECT DISTINCT [psam].SpecificationAttributeOptionId
FROM [Product_SpecificationAttribute_Mapping] [psam] WITH (NOLOCK)
WHERE [psam].[AllowFiltering] = 1
AND [psam].[ProductId] IN (
SELECT p.Id
FROM
Product p with (NOLOCK)
LEFT JOIN Product_Category_Mapping pcm with (NOLOCK)
ON p.Id = pcm.ProductId
WHERE
p.Deleted = 0
AND pcm.CategoryId IN (SELECT CategoryId FROM #FilteredCategoryIds)
AND pcm.IsFeaturedProduct = 0
AND p.VisibleIndividually = 1
AND p.Published = 1
AND p.Deleted = 0
AND (getutcdate() BETWEEN ISNULL(p.AvailableStartDateTimeUtc, '1/1/1900') and ISNULL(p.AvailableEndDateTimeUtc, '1/1/2999')))
As far as i know this is a temp table created by a stored procedure. But, is it my plugin, or is this code in nopcommerce? The problems started with 4 of my sites after upgrading to 3.8.
Does anyone know what this is? Could it be a problem with my nop templates ajax filter?