Disable user scope for global searching on Gitlab.com
Overview
Occasionally Global Searching, when searches are across any group, is resource-intensive to both Elastic search and Postgres.
Recently we have seen a resource impact for searches in the User scope across any group. Searches can take up to 15 min.
Searching users without a specified group would be a niche use case that would not be presumed valuable as part of Global Search.
Proposed solution
One possible solution is to disable the scope when no group is selected.
This MR is focused on Mitigating the impact to Advanced Search when using Elasticsearch. It's not clear if this is an option for User Scope searches which does not use Elasticsearch. !68640 (merged)
Edited by John McGuire