Group and global search always go through zoekt replicas

What does this MR do and why?

Always search through zoekt replicas

Because there are no indices without a replica, we can safely switch over. This also fixes a bug where duplicate indices were returned from joins made first through namespaces instead of replicas.

Instead of making join through a namespace, we are doing a join on zoekt repositories to pinpoint which node a project is located on.

Query Plans

Before

https://postgres.ai/console/gitlab/gitlab-production-main/sessions/32388/commands/100047

After

https://postgres.ai/console/gitlab/gitlab-production-main/sessions/32388/commands/100046

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by John Mason

Merge request reports

Loading