0

I've just started using the SentryOne Plan Explorer to help tune my SQL Server queries, and have a question, I can't seem to find an answer for. What is Duration? I would think it's the total time it took for the query to run. However, every query I am testing goes much longer in real-time than what ends up showing under Duration.

Below is a screenshot of what I'm seeing. Watching the query run takes over 2 minutes, but the final duration ends up being .770?

Thanks for any insight!

duration

Gemini
  • 109
  • 2
  • 15
  • Why don't you check with SentryOne? Their documentation should explain their output. This question is out of scope for SO. – Sean Lange Dec 20 '17 at 22:08
  • While a query is running, we show clock time on the status bar. However, at the end, we sum up the total duration, in milliseconds, as reported by *the trace rows we collected*. We subtract duration from any trace rows that are discarded (e.g. events that don't generate plans, like WAITFOR). If you send your .pesession file to community@sentryone.com we can help you take a closer look. – Aaron Bertrand Dec 21 '17 at 01:15
  • And I agree with @SeanLange, this isn't a peer programming question, this is a product support question. – Aaron Bertrand Dec 21 '17 at 01:15
  • Thanks for the feedback. I posted and uploaded my plan here: https://answers.sqlperformance.com/questions/4879/clock-time-is-over-2-minutes-but-duration-is-684-a.html – Gemini Dec 21 '17 at 16:45

1 Answers1

1

This is the answer provided by SentryOne:

While a query is running, we show clock time on the status bar. However, at the end, we sum up the total duration, in milliseconds, as reported by the trace rows we collected. We subtract duration from any trace rows that are discarded (e.g. events that don't generate plans, like WAITFOR).

Gemini
  • 109
  • 2
  • 15