One of the things we’ve added to our applications in the last few months is a little gem that (among other things) adds a comment to each MySQL query that is generated by one of our applications. Now, when we look at our Rails or slow query logs, our MySQL queries include the application, controller, and action that generated them: Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `ac