SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


long durations for query intermittently


long durations for query intermittently

Author
Message
djordan 4543
djordan 4543
SSC-Addicted
SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)SSC-Addicted (447 reputation)

Group: General Forum Members
Points: 447 Visits: 251
Hi Folks,

I was running profiler on a sql2008 r2 standard instance 10.50.4290. Occasionally I get long duration on batchcompleted for the following query

The explain plan for the query is doing an index seek and not much else.
the indexes are defragmented and stats are updated

the query returns about 10000 rows small amount of reads and there is no blocking from a blocked process report

When the query takes long time the application server is at 100% cpu. I do notice network_io_async as a significant wait

It seems to me that the long duration of the query (from batch completed) may be caused by the client doing some intensive process with the dataset the query returns.. Is that possible? My original thinking was the time it take a query to run (i.e duration in batch completed) is not influenced by client processing.
Igor Micev
Igor Micev
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10152 Visits: 5155
djordan 4543 (2/3/2014)
Hi Folks,

I was running profiler on a sql2008 r2 standard instance 10.50.4290. Occasionally I get long duration on batchcompleted for the following query

The explain plan for the query is doing an index seek and not much else.
the indexes are defragmented and stats are updated

the query returns about 10000 rows small amount of reads and there is no blocking from a blocked process report

When the query takes long time the application server is at 100% cpu. I do notice network_io_async as a significant wait

It seems to me that the long duration of the query (from batch completed) may be caused by the client doing some intensive process with the dataset the query returns.. Is that possible?


Hi

Yes it's possible, the client application doing intensive operations and the session is waiting.
Another reason could be the network hardware.
You should inspect these two reasons.

Regards,
Igor Micev

Igor Micev,
My blog: www.igormicev.com
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