diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-08-03 14:45:47 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-08-03 14:45:47 +0300 |
commit | 6f2fc50f0db94ac0cc26ca444e5ddf71c0392989 (patch) | |
tree | 63322d091e07acaccc4c3778b8c9a37007a9811e /app | |
parent | 4b9f2bab73b753c1efbf148e44bd03ec4af90d14 (diff) | |
parent | 6e03a0f75cf242f7c0f13b5285dde0220b34cd82 (diff) |
Merge branch 'zj-update-repository-languages-rails5' into 'master'
Update query simplification
Closes #49873
See merge request gitlab-org/gitlab-ce!20982
Diffstat (limited to 'app')
-rw-r--r-- | app/services/projects/detect_repository_languages_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/projects/detect_repository_languages_service.rb b/app/services/projects/detect_repository_languages_service.rb index 6669830ac8c..4b4108de231 100644 --- a/app/services/projects/detect_repository_languages_service.rb +++ b/app/services/projects/detect_repository_languages_service.rb @@ -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( |