gitlabhq/gitlabhq — pull request #6704 by skv-headless (2014-04-05 15:42:43+00:00)
Title: notes counts in 1 query

I like it because:
1) It ~60ms faster
2) It reduce number of sql queries in views