Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Ruby SQL not showing up #98

ksheurs opened this Issue · 6 comments

5 participants


hi there,

i've added the gem 'rack-mini-profiler' per i can see render durations, client stats, etc, but no sql logging is happening?

the only queries that sometime show up are schema queries.

i'm using the following:
ruby 1.9.3
rails 3.2.8




can you please include your Gemfile


I have a similar issue in a large project with ruby 1.8.7, rails 3.0.20, and mysql.

There are 130 gems in my Gemfile, but when the Gemfile is applied to a basic blog example running on the same stack, MiniProfiler logs sql fine.


I've also encountered this issue. Realized that just by having the following in Gemfile isn't sufficient:

gem 'activerecord-postgresql-adapter'
gem 'rack-mini-profiler'

I need to explicitly do:

gem 'pg'
gem 'activerecord-postgresql-adapter'
gem 'rack-mini-profiler'

Otherwise, miniprofiler wont be able to patch PG::Result & PG::Connection to yield the sql logging.


I added a note about this in the install doc, I guess we could defer the monkey patching till the first request. Open to a PR with it.

In the mean time I added a note in the readme


Hey Sam. I've got the rack-mini-profiler gem under pg and active-record-postgresql-adapter and still not seeing any sql in my profiling results.. any idea what to look for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.