Cache usage overview counts

What does this MR do and why?

Adds caching for Count.aggregate_for_period results in the Value Streams Dashboard usage overview. The counts are written monthly by CountWorker, but every dashboard load was recomputing them from scratch, causing timeouts on large groups.

Note: I'll mention the cache in the docs once we cleaned up the FF.

References

  • Related: gitlab-org/gitlab#636173

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Adam Hegyi

Merge request reports

Loading
Loading