gitlabhq/gitlabhq — pull request #1626 by tsigo (2012-10-03 23:42:19+00:00)
Title: Minor performance changes

Makes Issue and MergeRequest use a counter cache for its notes association.

Also reduces the queries generated by Ability from four on every single project page down to one.