gitlab-org--gitlab-foss/app/services/projects
Yorick Peterse aef9f1eb94
Cache the number of forks of a project
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).
2017-08-14 18:00:28 +02:00
..
import_export Rename path_with_namespace -> disk_path when dealing with the filesystem 2017-08-01 07:26:58 +02:00
autocomplete_service.rb Show group milestones in autocomplete 2017-08-07 11:55:01 +01:00
create_from_template_service.rb Rename GitLabProjectImporterService and misc fixes 2017-08-01 14:36:42 +02:00
create_service.rb After merge cleanup 2017-08-07 15:09:14 +02:00
destroy_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
download_service.rb
enable_deploy_key_service.rb Detect already enabled DeployKeys in EnableDeployKeyService 2017-05-03 17:37:08 +08:00
fork_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
forks_count_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
gitlab_projects_import_service.rb Fixes race condition in project uploads 2017-08-07 14:31:45 +02:00
housekeeping_service.rb
import_service.rb Add explanation why we should return early for GitHub importer 2017-08-07 14:21:21 -03:00
participants_service.rb
propagate_service_template.rb refactor code based on feedback 2017-05-05 18:57:52 +02:00
transfer_service.rb Added some extra TODOs for the Legacy Storage refactor 2017-08-01 07:28:13 +02:00
unlink_fork_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
update_pages_configuration_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
update_pages_service.rb Fix wrong method call on prometheus histogram 2017-08-10 20:05:44 +02:00
update_service.rb Add checks for branch existence before changing HEAD 2017-08-08 12:10:55 +11:00