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
fb7c62b8
Commit
fb7c62b8
authored
Jan 06, 2019
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase batch size to cut down time
parent
05f868b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/db/post_migrate/20181204040404_migrate_project_approvers.rb
.../post_migrate/20181204040404_migrate_project_approvers.rb
+2
-2
No files found.
ee/db/post_migrate/20181204040404_migrate_project_approvers.rb
View file @
fb7c62b8
...
...
@@ -4,7 +4,7 @@ class MigrateProjectApprovers < ActiveRecord::Migration[5.0]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
BATCH_SIZE
=
1
000
BATCH_SIZE
=
3
000
class
MergeRequest
<
ActiveRecord
::
Base
include
::
EachBatch
...
...
@@ -24,7 +24,7 @@ class MigrateProjectApprovers < ActiveRecord::Migration[5.0]
Gitlab
::
BackgroundMigration
::
MigrateApproverToApprovalRules
.
new
.
perform
(
'Project'
,
project_id
)
end
bulk_queue_background_migration_jobs_by_range
(
MergeRequest
,
'MigrateApproverToApprovalRulesInBatch'
)
bulk_queue_background_migration_jobs_by_range
(
MergeRequest
,
'MigrateApproverToApprovalRulesInBatch'
,
batch_size:
BATCH_SIZE
)
check_time
=
Gitlab
::
BackgroundMigration
::
MigrateApproverToApprovalRulesCheckProgress
::
RESCHEDULE_DELAY
BackgroundMigrationWorker
.
bulk_perform_in
(
check_time
,
[[
'MigrateApproverToApprovalRulesCheckProgress'
]])
...
...
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