diff options
author | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 13:34:24 +0300 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 20:32:13 +0300 |
commit | c5a89b35f0d43b54df8767522428a006770673ac (patch) | |
tree | 12cb81f073420b002ea875ea99658f8fe0556773 /app/services/projects/batch_open_issues_count_service.rb | |
parent | 3dc331c6131040b8c2a0e682c34e5a19c803e000 (diff) |
Using map to retrieve the element ids because of some issues with mysql
Diffstat (limited to 'app/services/projects/batch_open_issues_count_service.rb')
-rw-r--r-- | app/services/projects/batch_open_issues_count_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/projects/batch_open_issues_count_service.rb b/app/services/projects/batch_open_issues_count_service.rb index 5087684863b..3b0ade2419b 100644 --- a/app/services/projects/batch_open_issues_count_service.rb +++ b/app/services/projects/batch_open_issues_count_service.rb @@ -1,5 +1,7 @@ +# Service class for getting and caching the number of issues of several projects +# Warning: do not user this service with a really large set of projects +# because the service use maps to retrieve the project ids module Projects - # Service class for getting and caching the number of forks of several projects class BatchOpenIssuesCountService < Projects::BatchCountService def global_count @global_count ||= begin |