diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-11-24 19:10:53 +0300 |
---|---|---|
committer | Tiago <tiagonbotelho@hotmail.com> | 2017-11-28 15:42:42 +0300 |
commit | 47c3d360e2857bb6715c7d79bd177bc8cb84ac61 (patch) | |
tree | 934e3451e6cfabbdc7b5b9db4d5be45c2f0f754c /lib | |
parent | 1808069a1571f7ff834bf300a1da143df9f979b8 (diff) |
Merge branch 'dm-project-search-performance' into 'master'
Drastically improve project search performance by no longer searching namespace name
Closes #40510 and #39623
See merge request gitlab-org/gitlab-ce!15590
(cherry picked from commit 7230a344537f653747b23ce467851e342e8de5e6)
8041a872 Drastically improve project search performance by no longer searching namespace name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb index efe8095beea..fef9d3e31d4 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -30,7 +30,7 @@ module Gitlab def initialize(current_user, limit_projects, query) @current_user = current_user @limit_projects = limit_projects || Project.all - @query = Shellwords.shellescape(query) if query.present? + @query = query end def objects(scope, page = nil) |