Created
July 10, 2012 18:43
-
-
Save denishaskin/3085445 to your computer and use it in GitHub Desktop.
the-query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sysdate(), c.time_received, c.archive_time_received, | |
time_to_sec(timediff(sysdate(), c.time_received)) as 'LocProxyReceivedLatency', | |
time_to_sec(timediff(sysdate(), c.archive_time_received)) as 'LocDbReceivedLatency', | |
time_to_sec(timediff(c.archive_time_received, c.time_received)) as 'LocProxyToDbLatency' | |
from obanyc_cclocationreport c where time_received>=subtime(sysdate(), '1:00') order by time_received desc limit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment