Skip to content

Component Search using Loose Index Scan

Ryan Wells requested to merge 454305/index-scan-query into master

What does this MR do and why?

Closes: #490352 (closed)

Relates to: #442407 (comment 2113140223)

This MR implements a custom loose index scan for searching components at the group level. We have iterated several times to find a feasible solution, which is why you will find non-standard query usage in this MR.

DB Explain:

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.

How to set up and validate locally

  1. In rails console - Feature.enable(:group_level_dependencies_filtering_by_component)
  2. You must have a project (in a group) with dependencies for this to work.
query groupQuery {
  group(fullPath: "groupName") {
    components(name: <component name, or empty>) {
      nodes {
        id
        name
      }
    }
  }
}

query projectQuery {
  project(fullPath: "groupName/projectName") {
    components(name: <component name, or empty>) {
      nodes {
        id
        name
      }
    }
  }
}
Edited by Ryan Wells

Merge request reports

Loading