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.
Showing
... | ... | @@ -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 | ||
... | ... |
Please register or sign in to comment