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

Version Path
pghero-3.1.0 lib/tasks/pghero.rake
pghero-3.0.1 lib/tasks/pghero.rake
pghero-3.0.0 lib/tasks/pghero.rake
pghero-2.8.3 lib/tasks/pghero.rake
pghero-2.8.2 lib/tasks/pghero.rake
pghero-2.8.1 lib/tasks/pghero.rake
pghero-2.8.0 lib/tasks/pghero.rake
pghero-2.7.4 lib/tasks/pghero.rake
pghero_fork-2.7.3 lib/tasks/pghero.rake
pghero-2.7.3 lib/tasks/pghero.rake
pghero-2.7.2 lib/tasks/pghero.rake
pghero-2.7.1 lib/tasks/pghero.rake
pghero-2.7.0 lib/tasks/pghero.rake
pghero-2.6.0 lib/tasks/pghero.rake
pghero-2.5.1 lib/tasks/pghero.rake
pghero-2.5.0 lib/tasks/pghero.rake
pghero-2.4.2 lib/tasks/pghero.rake
pghero-2.4.1 lib/tasks/pghero.rake
pghero-2.4.0 lib/tasks/pghero.rake
pghero-2.3.0 lib/tasks/pghero.rake