Sha256: 187981bd32285e0b4b7e18ae8277c1cdf880afe66667234a046cd1e30ddab86b

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 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"
  task autoindex: :environment do
    PgHero.autoindex_all(verbose: true, create: true)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pghero-2.2.1 lib/tasks/pghero.rake
pghero-2.2.0 lib/tasks/pghero.rake
pghero-2.1.1 lib/tasks/pghero.rake
pghero-2.1.0 lib/tasks/pghero.rake
pghero-2.0.8 lib/tasks/pghero.rake
pghero-2.0.7 lib/tasks/pghero.rake
pghero-2.0.6 lib/tasks/pghero.rake