Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Query was executing fine and suddenly started taking time Expand / Collapse
Author
Message
Posted Friday, January 10, 2014 8:16 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:01 AM
Points: 267, Visits: 660
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.
Post #1529819
Posted Friday, January 10, 2014 8:22 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:12 PM
Points: 12,928, Visits: 12,345
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)
Post #1529822
Posted Friday, January 10, 2014 8:34 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:01 AM
Points: 267, Visits: 660
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
Post #1529833
Posted Friday, January 10, 2014 8:37 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:12 PM
Points: 12,928, Visits: 12,345
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


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)
Post #1529835
Posted Friday, January 10, 2014 10:58 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:01 AM
Points: 267, Visits: 660
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

Has anybody faced this Issue. This is really puzzlling . What could be the root cause
Post #1530017
Posted Saturday, January 11, 2014 7:07 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 35,216, Visits: 31,672
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

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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1530032
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse