From ad1c71663f7780838c7c90979419f3e3cf5ec580 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Fri, 26 Jul 2019 14:03:00 +0100 Subject: Replace peek-pg with our own implementation This uses an ActiveRecord subscriber to get queries and calculate the total query time from that. This means that the total will always be consistent with the queries in the table. It does however mean that we could potentially miss some queries that don't go through ActiveRecord. Making this change also allows us to unify the response JSON a little bit, making the frontend slightly simpler as a result. --- Gemfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index ba958c6ae10..e860ee61cb9 100644 --- a/Gemfile +++ b/Gemfile @@ -16,7 +16,7 @@ gem 'sprockets', '~> 3.7.0' gem 'default_value_for', '~> 3.2.0' # Supported DBs -gem 'pg', '~> 1.1', group: :postgres +gem 'pg', '~> 1.1' gem 'rugged', '~> 0.28' gem 'grape-path-helpers', '~> 1.1' @@ -297,7 +297,6 @@ gem 'batch-loader', '~> 1.4.0' # Perf bar gem 'peek', '~> 1.0.1' gem 'peek-gc', '~> 0.0.2' -gem 'peek-pg', '~> 1.3.0', group: :postgres gem 'peek-rblineprof', '~> 0.2.0' # Memory benchmarks -- cgit v1.2.3