Sha256: f161048c403af5d87aca57b93486cf9af0d5869017d4965af8bf6eb54a2ebde9
Contents?: true
Size: 536 Bytes
Versions: 9
Compression:
Stored size: 536 Bytes
Contents
/* Queries that have longest execution time in aggregate */ SELECT interval '1 millisecond' * total_exec_time AS total_exec_time, to_char((total_exec_time/sum(total_exec_time) OVER()) * 100, 'FM90D0') || '%%' AS prop_exec_time, to_char(calls, 'FM999G999G999G990') AS ncalls, interval '1 millisecond' * (shared_blk_read_time + shared_blk_write_time) AS sync_io_time, query AS query FROM pg_stat_statements WHERE userid = (SELECT usesysid FROM pg_user WHERE usename = current_user LIMIT 1) ORDER BY total_exec_time DESC LIMIT %{limit};
Version data entries
9 entries across 9 versions & 1 rubygems