gitlab-org--gitlab-foss/changelogs/unreleased/sh-optimize-calendar-activities.yml
Stan Hu a769292c67 Eliminate most N+1 queries loading UserController#calendar_activities
We can reduce a significant number of queries by preloading the
associations for events.

On GitLab.com, for a date that had 456 events, this brought the load
time down from 8.7 to 1.2 s.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58392
2019-03-01 10:57:09 -08:00

5 lines
128 B
YAML

---
title: Eliminate most N+1 queries loading UserController#calendar_activities
merge_request: 25697
author:
type: performance