Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Query was executing fine and suddenly started taking time


Query was executing fine and suddenly started taking time

Author
Message
Shadab Shah
Shadab Shah
Old Hand
Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)

Group: General Forum Members
Points: 307 Visits: 798
Hi all expert,

I am facing a problem .

I am having a query on PROD , which used to execute within 2-4 minutes till some days back.

Now its taking more than an hour, really dont know what is happening . Nothing has happen over a period of time.

We Checked the execution plan and found that it is using index seek.

Can't think what can be the cause. Has anyone faced the similar suituation . Any advice is highly appreciated .

Thanks.
Sean Lange
Sean Lange
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16639 Visits: 17027
Stale statistics?

Parameter sniffing (or the lack of it)?

It is nearly impossible to help without some details. Please see this article from Gail about how to post performance issues. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Shadab Shah
Shadab Shah
Old Hand
Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)

Group: General Forum Members
Points: 307 Visits: 798
Sean Lange (1/10/2014)
Stale statistics?

Parameter sniffing (or the lack of it)?

It is nearly impossible to help without some details. Please see this article from Gail about how to post performance issues. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/


Parameter sniffing cannot occur in my case because it is simple update query .....

and we did update statistics but it was also not hepfull Sad
Sean Lange
Sean Lange
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16639 Visits: 17027
Shadab Shah (1/10/2014)
Sean Lange (1/10/2014)
Stale statistics?

Parameter sniffing (or the lack of it)?

It is nearly impossible to help without some details. Please see this article from Gail about how to post performance issues. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/


Parameter sniffing cannot occur in my case because it is simple update query .....

and we did update statistics but it was also not hepfull Sad


OK so post an actual execution plan at bare minimum. Table definitions including indexes would also help.

_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Shadab Shah
Shadab Shah
Old Hand
Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)Old Hand (307 reputation)

Group: General Forum Members
Points: 307 Visits: 798
Just thought of giving a Update.

The query is running with in the stipulated time.

Nothing has changed over a period of time no server settings have changed not even query Doze

Has anybody faced this Issue. This is really puzzlling . What could be the root cause
Jeff Moden
Jeff Moden
SSC-Forever
SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)

Group: General Forum Members
Points: 45315 Visits: 39936
Shadab Shah (1/10/2014)
Just thought of giving a Update.

The query is running with in the stipulated time.

Nothing has changed over a period of time no server settings have changed not even query Doze

Has anybody faced this Issue. This is really puzzlling . What could be the root cause


I have, indeed, run into such a thing. When it occurs, it's normally either due to a conflict with other things OR it's because the UPDATE is (what I call) an "illegal update". There is a particular form of the UPDATE statement that usually works but, in fact, is not mentioned anywhere in Books Online (which is why I call it "illegal").

Please post the UPDATE statement that you were having troubles with so we can have a look.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search