Load result counts on inactive search tabs asynchronously
- Backend weight: 3
- Frontend weight: 3
Spun off of https://gitlab.com/gitlab-org/gitlab-ee/issues/11777:
The other thing we could do is performing some of these [result count] calculations asynchronously. For example, we can calculate the
SELECToperation in the actual request, because that is what the user really wants, and trigger several requests to calculate each one of the other counts in parallel.
This change will require a refactor of the
SearchControllerand the current search workflow, but it will help a lot with those timeouts.