Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
501e4de7
Commit
501e4de7
authored
Jul 29, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline batch size
parent
68a8dda6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-3
No files found.
lib/gitlab/usage_data.rb
View file @
501e4de7
...
...
@@ -12,8 +12,6 @@
# redis_usage_data { ::Gitlab::UsageCounters::PodLogs.usage_totals[:total] }
module
Gitlab
class
UsageData
BATCH_SIZE
=
100
class
<<
self
include
Gitlab
::
Utils
::
UsageData
include
Gitlab
::
Utils
::
StrongMemoize
...
...
@@ -371,7 +369,7 @@ module Gitlab
}
# rubocop: disable UsageData/LargeTable:
JiraService
.
active
.
includes
(
:jira_tracker_data
).
find_in_batches
(
batch_size:
BATCH_SIZE
)
do
|
services
|
JiraService
.
active
.
includes
(
:jira_tracker_data
).
find_in_batches
(
batch_size:
100
)
do
|
services
|
counts
=
services
.
group_by
do
|
service
|
# TODO: Simplify as part of https://gitlab.com/gitlab-org/gitlab/issues/29404
service_url
=
service
.
data_fields
&
.
url
||
(
service
.
properties
&&
service
.
properties
[
'url'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment