August 29, 2014 With a platform that serves millions of people every day, we have a number of services that need to query MySQL. GitHub.com is a large Rails application with a lot of queries generated though ActiveRecord. Occasionally we will get a slow query appear in our exception tracker Haystack: I’ve mentioned previously that we tag queries so we can see exactly where they come from. When we