Sha256: 4a287cc72629a914204b94642df02368dfbd7d0cd59fb9e478fb28aafad62efd

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

namespace :pghero do
  desc "capture query stats"
  task capture_query_stats: :environment do
    PgHero.capture_query_stats
  end

  desc "capture space stats"
  task capture_space_stats: :environment do
    PgHero.capture_space_stats
  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(create: true)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pghero-2.0.5 lib/tasks/pghero.rake
pghero-2.0.4 lib/tasks/pghero.rake
pghero-2.0.3 lib/tasks/pghero.rake
pghero-2.0.2 lib/tasks/pghero.rake
pghero-2.0.1 lib/tasks/pghero.rake
pghero-2.0.0 lib/tasks/pghero.rake