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.
This commit is contained in:
Yorick Peterse 2016-03-03 18:35:17 +01:00 committed by Robert Speicher
parent 8c2868e8ea
commit b77b3b16b6

View file

@ -94,7 +94,7 @@ module Gitlab
end
def project_ids_relation
limit_projects.select(:id)
limit_projects.select(:id).reorder(nil)
end
end
end