Skip to content

Commit

Permalink
adding header so it appears in command list
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkerstiens committed Sep 11, 2012
1 parent 1161f85 commit 883fbdd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions init.rb
Expand Up @@ -2,8 +2,12 @@

class Heroku::Command::Pg < Heroku::Command::Base

def cache
sql = %q(SELECT
def cachehit
# pg:cachehit
#
# see your cache hit rate for your database (effective databases are at 99% and up)
#
sql = %q(SELECT
to_char((sum(idx_blks_hit) - sum(idx_blks_read)) / sum(idx_blks_hit), '99.99') as cache_hit_rate
FROM
pg_statio_user_indexes)
Expand Down

0 comments on commit 883fbdd

Please sign in to comment.