July 14, 2011 at 7:51 am
Hi Guys,
I need a suggestion as to what is going on with my query... I have a query with correlated subqueries in it... it is running too slow now and takes almost 2 minutes to get the result while the same query used to take around 10 seconds to get the result week back. Nothing has been changed in our environment and even the data is still the same... What might be the issue??? I did change the correlated queries now and it running fast; however, I was thinking why there is change while running old query now and a week back?
Thanks!
July 14, 2011 at 8:32 am
Almost impossible to answer based on the information provided so far.
Parameter sniffing? Out of date statistics? Missing/dropped indexes? Changed data volume? Heavy server load? Disc issues? ...
Please remember: neither do we see what you see nor can we look over your shoulder.
So please provide the query, table def and index definition of the related source tables as well as the actual execution plan (preferrably both: one for the "slow" query and one for the "fast" one).
July 14, 2011 at 8:43 am
Thanks LutzM for your response. I was just looking for things I should look for in such cases when nothing has changed in the environment or data/indexes/query/parameters.
July 14, 2011 at 9:46 am
Start with comparing the actual execution plans if both are exactly the same.
July 14, 2011 at 11:48 am
Yes. Thanks you.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply