gitlab-org--gitlab-foss/app/services
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
..
application_settings
auth Rename user_can_admin? because it's more accurate 2017-08-07 17:29:34 +08:00
boards Clear issuable counter caches on update 2017-07-19 10:21:20 +01:00
chat_names Include new URL helpers retroactively into includers of Gitlab::Routing 2017-07-07 10:43:37 -05:00
ci Fix wrong method call on prometheus histogram 2017-08-10 20:05:44 +02:00
commits Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
concerns/issues Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
discussions Update diff discussion position per discussion instead of per note 2017-05-31 14:34:56 -05:00
emails fix bug in emails destroy service 2017-06-23 16:44:34 +02:00
files Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
groups Remove Mattermost team with GitLab group 2017-07-28 09:09:55 +02:00
issuable fix for Follow-up from "Backport of Multiple Assignees feature 2017-05-11 19:11:49 +03:00
issues Simplify checking if objects exist code in new issaubles workers 2017-08-08 12:43:55 +02:00
labels Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
mattermost
members Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
merge_requests Simplify checking if objects exist code in new issaubles workers 2017-08-08 12:43:55 +02:00
milestones Repair Regression caused by - !11573 2017-07-11 14:23:51 +08:00
notes Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
projects Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
protected_branches
protected_tags
quick_actions Add `/assign me` alias support for assigning issuables to oneself 2017-08-07 14:40:33 +02:00
search Merge branch 'snippets-finder-visibility' into 'security' 2017-05-10 16:48:18 +02:00
tags Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
test_hooks Wrong data type when testing webhooks 2017-07-20 15:12:06 +00:00
users Use Ghost user when edited_by, merged_by deleted 2017-07-19 11:35:17 +02:00
wiki_pages Allow wiki pages to be renamed in the UI 2017-08-03 07:38:11 +07:00
access_token_validation_service.rb `AccessTokenValidationService` accepts `String` or `API::Scope` scopes. 2017-06-30 07:32:25 +00:00
after_branch_delete_service.rb
akismet_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
audit_event_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
base_service.rb
cohorts_service.rb Use last_activity_on in cohorts 2017-04-14 15:20:55 +02:00
compare_service.rb Fix Diff::Position#diff_file for positions on straight diffs 2017-06-06 14:48:05 -05:00
create_branch_service.rb
create_deployment_service.rb Memorize the value in methods rather than local 2017-06-21 20:39:05 +08:00
create_release_service.rb
create_snippet_service.rb
delete_branch_service.rb Add confirm delete protected branch modal 2017-05-08 07:41:58 +00:00
delete_merged_branches_service.rb Make Delete Merged Branches handle wildcard protected branches correctly 2017-08-02 14:45:54 +02:00
event_create_service.rb Migrate events into a new format 2017-08-10 17:45:44 +02:00
git_hooks_service.rb Set the GL_REPOSITORY env variable on Gitlab::Git::Hook 2017-06-29 15:22:40 -04:00
git_operation_service.rb Rename many path_with_namespace -> full_path 2017-08-01 07:26:58 +02:00
git_push_service.rb Merge branch 'dm-large-push-performance' into 'master' 2017-07-28 17:03:17 +00:00
git_tag_push_service.rb Update tests and application 2017-06-13 16:05:38 +02:00
gravatar_service.rb Add username parameter to gravatar URL 2017-06-01 10:07:24 -05:00
ham_service.rb
import_export_clean_up_service.rb
issuable_base_service.rb Merge branch '32844-issuables-performance' into 'master' 2017-08-07 21:21:29 +00:00
metrics_service.rb Update Prometheus gem to version that explicitly calls `munmap` 2017-07-19 08:54:39 +00:00
note_summary.rb
notification_recipient_service.rb rubocop style fix 2017-08-03 09:07:18 -07:00
notification_service.rb skip the :read_project check for new_project_member 2017-08-11 16:02:08 -07:00
pages_service.rb
preview_markdown_service.rb Rename "Slash commands" to "Quick actions" 2017-06-15 09:01:56 -05:00
push_event_payload_service.rb Migrate events into a new format 2017-08-10 17:45:44 +02:00
repair_ldap_blocked_user_service.rb
repository_archive_clean_up_service.rb
search_service.rb Fix: Wiki is not searchable with Guest permissions 2017-05-22 19:51:09 +03:00
spam_check_service.rb
spam_service.rb
submit_usage_ping_service.rb Store & use ConvDev percentages returned by Version app 2017-08-07 20:52:08 +02:00
system_hooks_service.rb Rename many path_with_namespace -> full_path 2017-08-01 07:26:58 +02:00
system_note_service.rb Create system notes for group milestone changes 2017-08-07 11:55:00 +01:00
todo_service.rb Avoid plucking Todo ids and use sub-queries instead 2017-08-03 16:31:05 +02:00
update_release_service.rb
update_snippet_service.rb
upload_service.rb Support uploaders for personal snippets comments 2017-05-02 15:22:24 +02:00
user_agent_detail_service.rb
user_project_access_changed_service.rb
validate_new_branch_service.rb Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
web_hook_service.rb Fix encoding error for WebHook logging 2017-08-01 20:19:59 +03:00