Skip to content

Instantly share code, notes, and snippets.

@sydneyitguy
Last active October 12, 2015 18:28
Show Gist options
  • Save sydneyitguy/4068969 to your computer and use it in GitHub Desktop.
Save sydneyitguy/4068969 to your computer and use it in GitHub Desktop.
Rails Explain
ActiveRecord::Base.connection.execute('EXPLAIN QUERY PLAN SELECT * FROM users where id = 10')
= User.find(10).explain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment