Reduce sbom_occurrences table writes
What does this MR do and why?
Reduce sbom_occurrences table writes
sbom_occurrences is currently responsible for 2-9% of total WAL volumne on GitLab.com. In an effort to reduce this volume, this MR changes the ingestion code so that it will only attempt to update records if one or more of their attributes have been changed.
Relates to: https://gitlab.com/gitlab-org/gitlab/-/issues/442486
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 Brian Williams