* Add PGHero for more insights into the DB Andrew Kane's Ruby gems will continue being added until morale improves! * Add linux x86_64 protobuf * Fix discrepancy between Gemfile and Gemfile.lock No idea how this happened, but it happened when merging `main` back into this branch. Co-authored-by: Dan Uber <dan@forem.com>
9 lines
176 B
Ruby
9 lines
176 B
Ruby
class CaptureQueryStatsWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform
|
|
return unless ENV["PG_HERO_CAPTURE_QUERY_STATS"] == "true"
|
|
|
|
PgHero.capture_query_stats
|
|
end
|
|
end
|