How to convert time in 'slow query widget' in ADS?

Susja 716 Reputation points
2023-08-18T21:40:34.1866667+00:00

Hello,

I wanted to follow steps described in article 'how to analyze' ADS widget ' slow query'

I opened 'Manage' from right-click on database. Then I selected 'Show Details'. Selected one query and see that max_duration was 390180823

Now I want to understand it in seconds or minutes. I know that UI shows in milliseconds but table in microseconds. Hence I assume it's Table i.e. microseconds .. .I do the following:

390180823 / 1000 / 1000 / 60 and expect to see it in minutes i.e. 6.5 minutes.

Is my calculation correct?

Thanks

Azure Data Studio
Azure Data Studio
A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.
100 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Susja 716 Reputation points
    2023-08-19T08:57:38.6533333+00:00

    I looked again and I think it should make sense.

    First I recall that when I installed app it suggested me to set execution time in UTC hence I see in 'Details' time e.g. 10:19:43 in UTC. In my SQL execution I see it in my local time i.e. 6:04:34.

    Hence .. if I substract 4 hours from UTC I will get my local time in EDT ..

    Had to think more before filing a ticket :)

    0 comments No comments

  2. Susja 716 Reputation points
    2023-08-20T11:02:43.1633333+00:00

    I think that my last comment is an answer