summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-01-10 13:30:28 -0500
committerAdam Niedzielski <adamsunday@gmail.com>2017-01-10 13:30:28 -0500
commitb11492c2e36803cf19b175e7d850a72f4e5f9b1f (patch)
tree2b35b31a1a48a03de47d843a68d1547f9b559d55 /lib/api/files.rb
parentbb02141e417ff21deb7707a806a313545bbdd5af (diff)
downloadgitlab-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 'lib/api/files.rb')
0 files changed, 0 insertions, 0 deletions