gitlab-org--gitlab-foss/lib/api
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
..
helpers Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
v3 Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
access_requests.rb Update grape gem 2017-07-20 16:33:18 +03:00
api.rb Add a Circuitbreaker for storage paths 2017-08-04 15:38:48 +02:00
api_guard.rb Extract a Gitlab::Scope class. 2017-06-29 06:15:57 +00:00
award_emoji.rb Update grape gem 2017-07-20 16:33:18 +03:00
boards.rb
branches.rb Extending API for protected branches 2017-08-02 10:16:17 +00:00
broadcast_messages.rb Update grape gem 2017-07-20 16:33:18 +03:00
circuit_breakers.rb Add a Circuitbreaker for storage paths 2017-08-04 15:38:48 +02:00
commit_statuses.rb Fix head pipeline stored in merge request for external pipelines 2017-06-27 21:08:31 +02:00
commits.rb Fix the /projects/:id/repository/commits endpoint to handle dots in the ref name when the project full path contains a / 2017-08-08 12:54:07 +02:00
deploy_keys.rb Update grape gem 2017-07-20 16:33:18 +03:00
deployments.rb
entities.rb Migrate events into a new format 2017-08-10 17:45:44 +02:00
environments.rb Update grape gem 2017-07-20 16:33:18 +03:00
events.rb Accept a username for User-level Events API 2017-06-06 20:16:41 +08:00
features.rb Improve Features API and its docs and add a Changelog item 2017-07-06 11:18:26 +02:00
files.rb Add start_branch to files and commits APIs 2017-08-04 19:18:07 +02:00
group_milestones.rb Add group milestones API endpoint 2017-07-21 11:00:00 -03:00
group_variables.rb Add 204. Remove duplicated method. 2017-08-01 21:17:46 +09:00
groups.rb Update grape gem 2017-07-20 16:33:18 +03:00
helpers.rb Show error message for API 500 error in tests, and 2017-08-11 20:50:35 +08:00
internal.rb Renamed Gitaly services 2017-07-18 07:59:36 +00:00
issues.rb Modify/add some forgotten issues API documentation 2017-07-28 00:08:44 +02:00
jobs.rb Add missing specs 2017-06-01 16:34:48 +02:00
keys.rb
labels.rb Update grape gem 2017-07-20 16:33:18 +03:00
lint.rb Improve curl commend, remove blank lines 2016-09-07 12:54:02 +02:00
members.rb Update grape gem 2017-07-20 16:33:18 +03:00
merge_request_diffs.rb
merge_requests.rb Default /merge_request API endpoint to scope=created-by-me 2017-07-28 00:07:28 +02:00
milestone_responses.rb Add group milestones API endpoint 2017-07-21 11:00:00 -03:00
namespaces.rb Rename members_count to members_count_with_descendants and expose only to group admins 2017-06-28 17:27:01 -03:00
notes.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
notification_settings.rb refactor update user service not to do auth checks 2017-06-23 11:41:43 +02:00
pagination_params.rb
pipeline_schedules.rb Remove update|admin_pipeline_schedule from Project, and grant it in PipelineSchedule 2017-07-07 12:11:48 +02:00
pipelines.rb Introduce source to pipeline entity 2017-05-31 14:17:49 +02:00
project_hooks.rb Update grape gem 2017-07-20 16:33:18 +03:00
project_milestones.rb Add group milestones API endpoint 2017-07-21 11:00:00 -03:00
project_snippets.rb Update grape gem 2017-07-20 16:33:18 +03:00
projects.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
protected_branches.rb Extending API for protected branches 2017-08-02 10:16:17 +00:00
repositories.rb Revert "Remove changes that are not absolutely necessary" 2017-05-24 20:59:26 +00:00
runner.rb Rename many path_with_namespace -> full_path 2017-08-01 07:26:58 +02:00
runners.rb Update grape gem 2017-07-20 16:33:18 +03:00
scope.rb AccessTokenValidationService accepts String or API::Scope scopes. 2017-06-30 07:32:25 +00:00
services.rb Remove project_key from the Jira configuration 2017-07-25 17:25:41 +02:00
session.rb
settings.rb Add option to disable project export on instance 2017-08-11 12:22:37 -04:00
sidekiq_metrics.rb
snippets.rb Update grape gem 2017-07-20 16:33:18 +03:00
subscriptions.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
system_hooks.rb Update grape gem 2017-07-20 16:33:18 +03:00
tags.rb Fix the /projects/:id/repository/tags endpoint to handle dots in the tag name when the project full path contains a / 2017-08-08 11:50:58 +02:00
templates.rb
time_tracking_endpoints.rb Enable the Style/PreferredHashMethods cop 2017-06-02 19:11:26 +02:00
todos.rb Avoid plucking Todo ids and use sub-queries instead 2017-08-03 16:31:05 +02:00
triggers.rb init 2017-07-28 18:13:29 +09:00
users.rb Include the is_admin field in the GET /users/:id API when current user is an admin 2017-08-11 15:14:32 +02:00
variables.rb Update grape gem 2017-07-20 16:33:18 +03:00
version.rb