gitlab-org--gitlab-foss/changelogs/unreleased/41059-calculate-artifact-size-more-efficiently.yml
Dylan Griffith 03b020f2e4 Update ProjectStatistics#build_artifacts_size synchronously without summing (#41059)
Previously we scheduled a worker to just some this but we were running
into performance issues when the build table was getting too large. So
now we've updated the code such that this column is updated immediately
and incremented/decremented by the correct amount whenever artifacts are
created or deleted.

We've also added the performance optimization that we do not update this
statistic if a project is deleted because it could result in many
updates for a project with many builds.
2018-04-19 18:35:40 +10:00

5 lines
117 B
YAML

---
title: Improve DB performance of calculating total artifacts size
merge_request: 17839
author:
type: performance