In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
SELECT
P.idProduct,
P.sku,
P.description,
P.price,
P.listhidden,
P.listprice,
P.serviceSpec,
P.bToBPrice,
P.smallImageUrl,
P.noprices,
P.stock,
P.noStock,
P.pcprod_HideBTOPrice,
P.pcProd_BackOrder,
P.FormQuantity,
P.pcProd_BTODefaultPrice,
CAST(P.sDesc AS varchar (8000)) sDesc,
0,
0,
P.pcprod_OrdInHome,
P.sales,
P.pcprod_EnteredOn,
P.hotdeal,
P.pcProd_SkipDetailsPage
FROM
products P
INNER JOIN
categories_products CP
ON P.idProduct = CP.idProduct
WHERE
CP.idCategory = 494
AND active = -1
AND configOnly = 0
AND removed = 0
AND P.formQuantity = 0
AND (
(
SELECT
TOP 1 SP.stock
FROM
products SP
WHERE
SP.pcprod_ParentPrd = P.idProduct
AND SP.description LIKE N'%(9-12 Months)'
AND SP.removed = 0
) > 0
)
ORDER BY
P.description ASC