Commit 228e32a2 authored by Stan Hu's avatar Stan Hu

Merge branch '215147-drop-feature-flag' into 'master'

Drop feature flag: import_bulk_inserts

Closes #215147

See merge request gitlab-org/gitlab!30057
parents 284428a4 6c3991be
---
title: 'Project import queries are now partially batched'
merge_request: 30057
author:
type: performance
......@@ -37,9 +37,7 @@ module Gitlab
ActiveRecord::Base.no_touching do
update_params!
bulk_inserts_enabled = @importable.class == ::Project &&
Feature.enabled?(:import_bulk_inserts, @importable.group, default_enabled: true)
BulkInsertableAssociations.with_bulk_insert(enabled: bulk_inserts_enabled) do
BulkInsertableAssociations.with_bulk_insert(enabled: @importable.class == ::Project) do
fix_ci_pipelines_not_sorted_on_legacy_project_json!
create_relations!
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment