Skip to content

Instantly share code, notes, and snippets.

@dinks
Created February 25, 2014 10:06
Show Gist options
  • Select an option

  • Save dinks/9206228 to your computer and use it in GitHub Desktop.

Select an option

Save dinks/9206228 to your computer and use it in GitHub Desktop.
Explain for longer queries
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
config.active_record.auto_explain_threshold_in_seconds = 0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment