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
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
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
features.rb
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
keys.rb
labels.rb Update grape gem 2017-07-20 16:33:18 +03:00
lint.rb
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
notes.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
notification_settings.rb
pagination_params.rb
pipeline_schedules.rb
pipelines.rb
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
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
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
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
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