https://github.com/benbarber/sql-query-stats
This Gem adds some useful SQL query stats to your Rails logs
https://github.com/benbarber/sql-query-stats
active-record ruby-gem ruby-on-rails sql sql-query stats
Last synced: 5 months ago
JSON representation
This Gem adds some useful SQL query stats to your Rails logs
- Host: GitHub
- URL: https://github.com/benbarber/sql-query-stats
- Owner: benbarber
- License: mit
- Created: 2018-02-26T08:59:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T19:49:32.000Z (over 2 years ago)
- Last Synced: 2025-01-16T09:14:32.655Z (5 months ago)
- Topics: active-record, ruby-gem, ruby-on-rails, sql, sql-query, stats
- Language: Ruby
- Homepage: https://rubygems.org/gems/sql-query-stats
- Size: 40 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sql Query Stats
This Gem adds some useful SQL query stats to your Rails logs.
#### Reported stats include
* Query count
* Query cache used
* Slowest query
* Slowest query duration
* Total query duration## Installation & usage
Add this line to your application's Gemfile:```ruby
gem 'sql-query-stats'
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install sql-query-stats
```## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).