Update vulnerability_count column in report ingestion

What does this MR do and why?

In this MR, I update the vulnerability_count column in the project_statistics table during the report ingestion.
This is a part of this issue

Database review

There is only one additional query introduced by this change which updates a row on the project_statistics table by using its primary key.

Here is the query and its execution plan
UPDATE "project_statistics" SET vulnerability_count = vulnerability_count + 10 WHERE "project_statistics"."id" = 17312

https://console.postgres.ai/gitlab/gitlab-production-main/sessions/30923/commands/96033

Edited by Mehmet Emin INAC

Merge request reports

Loading