Software Developer
Based in Beirut, Lebanon

 

Rails gets automatic EXPLAIN logging for slow SQL queries

thechangelog:

In a fresh commit, Rails edge now has the ability to automatically add query plan info to the standard Rails logger:

# 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

  1. romainmuller reblogged this from thechangelog
  2. script-scrappy reblogged this from thechangelog
  3. cnicolaou reblogged this from thechangelog
  4. benjaminsteinpro reblogged this from thechangelog
  5. wevnote reblogged this from thechangelog
  6. paul-yamamoto reblogged this from thechangelog
  7. thechangelog posted this