Sha256: d3d0fb61cbb4797d1f3cfc44190e882c53a7549b98463c2766d2a1b7af4da127
Contents?: true
Size: 692 Bytes
Versions: 20
Compression:
Stored size: 692 Bytes
Contents
namespace :pghero do desc "Capture query stats" task capture_query_stats: :environment do PgHero.capture_query_stats(verbose: true) end desc "Capture space stats" task capture_space_stats: :environment do PgHero.capture_space_stats(verbose: true) end desc "Analyze tables" task analyze: :environment do PgHero.analyze_all(verbose: true, min_size: ENV["MIN_SIZE_GB"].to_f.gigabytes) end desc "Autoindex tables" task autoindex: :environment do PgHero.autoindex_all(verbose: true, create: true) end desc "Remove old query stats" task clean_query_stats: :environment do puts "Deleting old query stats..." PgHero.clean_query_stats end end
Version data entries
20 entries across 20 versions & 2 rubygems