Commit graph

1 commit

Author SHA1 Message Date
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