I imagine github can do this at the reverse proxy level, instead of doing 20 queries to mysql and overload the ruby application.