Commit 6f2fc50f authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'zj-update-repository-languages-rails5' into 'master'

Update query simplification

Closes #49873

See merge request gitlab-org/gitlab-ce!20982
parents 4b9f2bab 6e03a0f7
......@@ -13,10 +13,9 @@ module Projects
detection.updates.each do |update|
RepositoryLanguage
.arel_table.update_manager
.where(project_id: project.id)
.where(programming_language_id: update[:programming_language_id])
.set(share: update[:share])
.update_all(share: update[:share])
end
Gitlab::Database.bulk_insert(
......
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