gitlab-org--gitlab-foss/app/views/layouts
Yorick Peterse 6ec53f5d48
Cache the number of open issues and merge requests
Every project page displays a navigation menu that in turn displays the
number of open issues and merge requests. This means that for every
project page we run two COUNT(*) queries, each taking up roughly 30
milliseconds on GitLab.com. By caching these numbers and refreshing them
whenever necessary we can reduce loading times of all these pages by up
to roughly 60 milliseconds.

The number of open issues does not include confidential issues. This is
a trade-off to keep the code simple and to ensure refreshing the data
only needs 2 COUNT(*) queries instead of 3. A downside is that if a
project only has 5 confidential issues the counter will be set to 0.

Because we now have 3 similar counting service classes the code
previously used in Projects::ForksCountService has mostly been moved to
Projects::CountService, which in turn is reused by the various service
classes.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36622
2017-08-23 13:42:29 +02:00
..
header Revert "Add user_dropdown_link to prompt users to turn on new repo" 2017-08-08 09:26:55 -05:00
mailer gitlab.com contrib footer only for devise mails 2017-06-13 22:36:45 +02:00
nav Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
_bootlint.haml Resolve "Specific Async Script Loading by using a Page Variable" 2017-08-03 20:31:53 +00:00
_broadcast.html.haml Handle nil BroadcastMessage.current in the views 2017-07-13 21:43:44 -07:00
_flash.html.haml
_google_analytics.html.haml Inline script cleanup globals and easy 2017-08-01 08:50:59 +00:00
_head.html.haml Fix order of CI lint ace editor loading 2017-08-04 16:39:01 +01:00
_init_auto_complete.html.haml Resolve "Specific Async Script Loading by using a Page Variable" 2017-08-03 20:31:53 +00:00
_mailer.html.haml gitlab.com contrib footer only for devise mails 2017-06-13 22:36:45 +02:00
_page.html.haml Moves the Performance Bar to the top instead of being at the bottom 2017-07-31 08:07:51 +00:00
_page_title.html.haml
_piwik.html.haml Inline script cleanup globals and easy 2017-08-01 08:50:59 +00:00
_recaptcha_verification.html.haml
_search.html.haml Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
admin.html.haml Resolve "Navigation - Move contextual navigation to sidebar" 2017-06-28 08:30:57 +00:00
application.html.haml Moves the Performance Bar to the top instead of being at the bottom 2017-07-31 08:07:51 +00:00
dashboard.html.haml
devise.html.haml
devise_empty.html.haml
errors.html.haml
explore.html.haml
group.html.haml Resolve "Navigation - Move contextual navigation to sidebar" 2017-06-28 08:30:57 +00:00
group_settings.html.haml
help.html.haml Fixed the breadcrumb title for help pages 2017-07-28 09:57:30 +01:00
koding.html.haml
mailer.html.haml use common devise layout and use heading style 2017-06-13 22:36:45 +02:00
mailer.text.erb
notify.html.haml
notify.text.erb
oauth_error.html.haml Update design of auth error page 2017-05-05 08:33:04 +00:00
profile.html.haml Resolve "Navigation - Move contextual navigation to sidebar" 2017-06-28 08:30:57 +00:00
project.html.haml Inline script cleanup globals and easy 2017-08-01 08:50:59 +00:00
project_settings.html.haml
search.html.haml
snippets.html.haml Inline script cleanup globals and easy 2017-08-01 08:50:59 +00:00
xml.atom.builder Refactor atom builder by using xml.atom layout 2017-06-12 19:21:13 +02:00