mozilla/kuma — pull request #2068 by lmorchard (2014-02-26 14:46:20+00:00)
Title: Issue #2062: Reduce DB queries involved in annotating links to existing or new wiki pages

So, as we were reminded yesterday during performance investigations, this filter thing fires off a separate DB query for every link on a wiki page. That can really add up. So, reducing this to 1 query per page per locale involved in links should result in a lot of DB query reduction.