You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The duration shown is wall clock from send to last row. On a remote database, or on a large result over a tunnel, most of that is transfer, so the number says nothing about whether the query is slow.
Proposed solution
Split the reported duration into time to first row and time to last row, and show both.
Where the engine reports its own execution time, show that as the server figure: MySQL profiling, PostgreSQL EXPLAIN ANALYZE, ClickHouse's X-ClickHouse-Summary, BigQuery job statistics.
Carry both into query insights so the slow-query ranking is by server time rather than by transfer.
Activity