Skip to content

Cache the number of user SSH keys

Yorick Peterse requested to merge cache-user-keys-count into master

What does this MR do?

This caches the number of personal SSH keys (as used by e.g. User#require_ssh_key?) in order to reduce the number of SQL queries necessary in actions such as ProjectsController#show.

See https://gitlab.com/gitlab-org/gitlab-ce/issues/36878 for more information.

Does this MR meet the acceptance criteria?

Edited by Yorick Peterse

Merge request reports