SQL Clone
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
SSC Eights!
SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)

Group: General Forum Members
Points: 903 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
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61243 Visits: 17954
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 Modens 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
SSC Eights!
SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)

Group: General Forum Members
Points: 903 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
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61243 Visits: 17954
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 Modens 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
SSC Eights!
SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)

Group: General Forum Members
Points: 903 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 Guru
SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)SSC Guru (210K reputation)

Group: General Forum Members
Points: 210721 Visits: 41973
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

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