diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-03-03 20:35:17 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-11 23:25:23 +0300 |
commit | b77b3b16b6d34e19b07ec58bc9b1e1ca3b05ba25 (patch) | |
tree | 83868cb79c2a3bd0d71199fb2a6b4a64c303f0cf /lib | |
parent | 8c2868e8ea5d6340efcedfe5fd6388b0087eae89 (diff) |
Removed order from sub-query projects for search
There's no need to order queries used as sub-queries and doing so can
add potential overhead.
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 036fa6f937c..f13528a2eea 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -94,7 +94,7 @@ module Gitlab end def project_ids_relation - limit_projects.select(:id) + limit_projects.select(:id).reorder(nil) end end end |