Add EXPLAIN ANALYZE to Rails Active Record query objects
Clone or download
Latest commit b340d8a Mar 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib fixes Mar 11, 2018
.gitignore initial commit Mar 11, 2018
Gemfile initial commit Mar 11, 2018
LICENSE.txt initial commit Mar 11, 2018
README.md readme Mar 11, 2018
Rakefile initial commit Mar 11, 2018
activerecord-analyze.gemspec initial commit Mar 11, 2018

README.md

ActiveRecord Analyze

This gem adds an analyze method to Active Record query objects. It executes EXPLAIN ANALYZE on a query SQL.

alt text

Installation

In your Gemfile:

gem 'activerecord-analyze'

Disclaimer

It is a bit experimental and can break with new Rails release. As soon as this pull request is merged it will be obsolete.