gitlab-org--gitlab-foss/changelogs/unreleased/fix-n-plus-one-in-url-builder.yml
Sean McGivern 222a6b4680 Don't reload ActiveRecord objects when building note URLs
When we build a note URL, and we have the note loaded already, there are two
cases:

1. The `noteable` is already loaded. In that case, this is faster as it doesn't
   build a new AR object from the query.
2. The `noteable` is not already loaded. In that case, this change is no worse
   than the previous code.
2017-07-11 13:02:55 +01:00

4 lines
106 B
YAML

---
title: Improve issue rendering performance with lots of notes from other users
merge_request:
author: