This Gem adds some useful SQL query stats to your Rails logs.
- Query count
- Query cache used
- Slowest query
- Slowest query duration
- Total query duration
Add this line to your application's Gemfile:
gem 'sql-query-stats'And then execute:
$ bundleOr install it yourself as:
$ gem install sql-query-statsThe gem is available as open source under the terms of the MIT License.