Skip to content

Remove N+1 query for updating Vulnerability links and identifier_objects [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Saikat Sarkar requested to merge vulnerability_links_n+1 into master

What does this MR do?

This MR is related to changes described in the following issues.

StoreSecurityReportsWorker has a number of places where we can optimize for N+1 queries. We are able to remove these N+1 queries, this worker will impose less pressure on primary db. In this MR, we are trying to optimize the N+1 query issue for vulnerability_links and identifier_objects.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Saikat Sarkar

Merge request reports