summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 14:29:35 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-06 14:29:35 +0100
commit3c89252e53147fed0d134988a6ec29aa2c02abe5 (patch)
tree82afb4b2423e5ca1fbc7c9a386ef62641cbc6c69 /db
parentaaa678cbc69ad5768d076a8e1cc3f249b2adeb29 (diff)
downloadgitlab-ce-3c89252e53147fed0d134988a6ec29aa2c02abe5.tar.gz
Reduce batch size of stages we schedule for a migration
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20180105101928_schedule_build_stage_migration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20180105101928_schedule_build_stage_migration.rb b/db/post_migrate/20180105101928_schedule_build_stage_migration.rb
index 3d7f6278244..b33127140bb 100644
--- a/db/post_migrate/20180105101928_schedule_build_stage_migration.rb
+++ b/db/post_migrate/20180105101928_schedule_build_stage_migration.rb
@@ -3,7 +3,7 @@ class ScheduleBuildStageMigration < ActiveRecord::Migration
DOWNTIME = false
MIGRATION = 'MigrateBuildStage'.freeze
- BATCH = 10_000
+ BATCH = 1000
class Build < ActiveRecord::Base
include EachBatch