diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-01-10 13:30:28 -0500 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-01-10 13:30:28 -0500 |
commit | b11492c2e36803cf19b175e7d850a72f4e5f9b1f (patch) | |
tree | 2b35b31a1a48a03de47d843a68d1547f9b559d55 /changelogs | |
parent | bb02141e417ff21deb7707a806a313545bbdd5af (diff) | |
download | gitlab-ce-b11492c2e36803cf19b175e7d850a72f4e5f9b1f.tar.gz |
Use cached values to compute total issues count in milestone index pagesreduce-queries-milestone-index
Milestoneish#issues_visible_to_user caches only the ActiveRecord relation,
not the actual result.
Introduce Milestoneish#total_issues_count that relies on the cached method
Milestoneish#count_issues_by_state to reduce the number of queries.
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/reduce-queries-milestone-index.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/reduce-queries-milestone-index.yml b/changelogs/unreleased/reduce-queries-milestone-index.yml new file mode 100644 index 00000000000..a779b58c973 --- /dev/null +++ b/changelogs/unreleased/reduce-queries-milestone-index.yml @@ -0,0 +1,4 @@ +--- +title: Use cached values to compute total issues count in milestone index pages +merge_request: 8518 +author: |