Sha256: 8e4cb0579513984148e9e46fa8cf8727d86f068170ed2745ee49b55a52cc2d48

Contents?: true

Size: 480 Bytes

Versions: 64

Compression:

Stored size: 480 Bytes

Contents

/* Queries that have highest frequency of execution */

SELECT query AS qry,
interval '1 millisecond' * total_time AS exec_time,
to_char((total_time/sum(total_time) OVER()) * 100, 'FM90D0') || '%%'  AS prop_exec_time,
to_char(calls, 'FM999G999G990') AS ncalls,
interval '1 millisecond' * (blk_read_time + blk_write_time) AS sync_io_time
FROM pg_stat_statements WHERE userid = (SELECT usesysid FROM pg_user WHERE usename = current_user LIMIT 1)
ORDER BY calls DESC LIMIT %{limit};

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
ruby-pg-extras-4.0.0 lib/ruby_pg_extras/queries/calls_legacy.sql
ruby-pg-extras-3.3.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.7 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.6 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.5 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.4 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.3 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.2 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.1 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.2.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.1.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-3.0.6 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-2.3.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-2.2.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-2.1.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-2.0.0 lib/ruby-pg-extras/queries/calls_legacy.sql
ruby-pg-extras-1.6.0 lib/ruby-pg-extras/queries/calls.sql
ruby-pg-extras-1.5.3 lib/ruby-pg-extras/queries/calls.sql
ruby-pg-extras-1.5.2 lib/ruby-pg-extras/queries/calls.sql
ruby-pg-extras-1.5.1 lib/ruby-pg-extras/queries/calls.sql