No SQL times on Ruby / Rails


#1

I WAS going to post this as a question / bug, but then realized my issue, so posting the fix for others.

Ruby / Rails app, using rack-mini-profiler 0.1.7. I was getting traces, but no SQL times at all. Looking over my gem files to post my question, I realized we had both ‘gem mysql’ and ‘gem mysql2’ in our gemfile, and my DB connections were using the ‘mysql’ driver.

Remove the ‘mysql’ gem, changed my database.yml, and sql times started coming up.

Thanks for a great gem!