Nathaniel Talbott of test/unit fame has just released a new plugin he calls QueryTrace. I’ll let him explain what it does:
It’s nice that ActiveRecord logs the queries that are performed when your actions are executed, since it makes it easy to see when you have serious inefficiencies in your application. The next question, though, is always, “OK, so where are those being run from?</p>