aef9f1eb94
The number of forks of a project doesn't change very frequently and running a COUNT(*) every time this information is requested can be quite expensive. We also end up running such a COUNT(*) query at least twice on the homepage of a project. By caching this data and refreshing it when necessary we can reduce project homepage loading times by around 60 milliseconds (based on the timings of https://gitlab.com/gitlab-org/gitlab-ce). |
||
---|---|---|
.. | ||
import_export | ||
autocomplete_service.rb | ||
create_from_template_service.rb | ||
create_service.rb | ||
destroy_service.rb | ||
download_service.rb | ||
enable_deploy_key_service.rb | ||
fork_service.rb | ||
forks_count_service.rb | ||
gitlab_projects_import_service.rb | ||
housekeeping_service.rb | ||
import_service.rb | ||
participants_service.rb | ||
propagate_service_template.rb | ||
transfer_service.rb | ||
unlink_fork_service.rb | ||
update_pages_configuration_service.rb | ||
update_pages_service.rb | ||
update_service.rb |