Add BackfillDesiredShardingKeyPartitionJob
This new batched migration will add partition_id in the where clause in order to leverage partition pruning and not scanning all partitions.
显示
- lib/gitlab/background_migration/backfill_desired_sharding_key_partition_job.rb 26 个添加, 0 个删除..._migration/backfill_desired_sharding_key_partition_job.rb
- rubocop/cop/migration/batched_migration_base_class.rb 1 个添加, 0 个删除rubocop/cop/migration/batched_migration_base_class.rb
- spec/lib/gitlab/background_migration/backfill_desired_sharding_key_partition_job_spec.rb 91 个添加, 0 个删除...ation/backfill_desired_sharding_key_partition_job_spec.rb
- spec/rubocop/cop/migration/batched_migration_base_class_spec.rb 2 个添加, 0 个删除...ubocop/cop/migration/batched_migration_base_class_spec.rb
加载中
想要评论请 注册 或 登录