gitlab-org--gitlab-foss/app
Stan Hu 8690ca5c28 Eliminate N+1 queries in loading discussions.json endpoint
In #37955,we see that the profile had a number of N+1 queries from repeated
access to `cross_reference_not_visible_for?`. This was optimized in previous
versions of GitLab by rendering all notes at once, counting the number of
visible references, and then using that number to check whether a system note
should be fully redacted.

There was also another N+1 query calling `ProjectTeam#member?`, which did not
take advantage of an optimization in prepare_notes_for_rendering that would
preload the maximum access level per project.

Closes #37955
2017-09-18 06:53:33 -07:00
..
assets Display whether branch has been merged when deleting protected branch 2017-09-15 12:33:50 +00:00
controllers Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
finders Removes default scope from sortable 2017-09-07 13:01:59 +01:00
helpers Merge branch 'revert-sidebar-title-attribute' into 'master' 2017-09-15 10:10:25 +00:00
mailers
models Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
policies Make Members with Owner and Master roles always able to create subgroups 2017-09-07 13:47:58 -05:00
presenters Move trigger_variables to presenter 2017-09-04 22:21:47 +09:00
serializers Implemented the new Description Content 2017-09-12 11:19:06 +02:00
services Merge branch 'master' into 'issue_37640' 2017-09-15 20:14:53 +00:00
uploaders
validators
views Merge branch '21331-improve-confusing-compare-page' into 'master' 2017-09-15 14:54:28 +00:00
workers Adds exclusive lease to Git garbage collect worker. 2017-09-07 18:52:04 +01:00