gitlab-org--gitlab-foss/app/controllers
Yorick Peterse 154253cab5
Refactor TrendingProjectsFinder to support caching
== Public Projects

This finder class now _only_ returns public projects. Previously this
finder would also return private and internal projects. Including these
projects makes caching data much harder and less efficient. Meanwhile
including this data isn't very useful as very few users would be
interested in seeing projects they have access to as trending. That is,
the feature is more useful when you want to see what _other_ popular
projects there are.

== Caching

The data returned by TrendingProjectsFinder is now cached for a day
based on the number of months the data should be restricted to. The
cache is not flushed explicitly, instead it's rebuilt whenever it
expires.

== Timings

To measure the impact I changed the finder code to use the last 24
months instead of the last month. I then executed and measured 10
requests to the explore page. On the current "master" branch (commit
88fa5916ff) this would take an average of
2.43 seconds. Using the changes of this commit this was reduced to
around 1.7 seconds.

Fixes gitlab-org/gitlab-ce#22164
2016-10-05 16:39:03 +02:00
..
admin New AccessRequestsFinder 2016-09-28 08:46:59 +02:00
ci Expose jobs to view 2016-09-30 12:22:55 +02:00
concerns Merge branch 'restrict-failed-2fa-attempts' into 'master' 2016-10-04 15:04:57 +00:00
dashboard Merge branch 'issue_18135' into 'master' 2016-08-19 23:06:30 +00:00
explore Refactor TrendingProjectsFinder to support caching 2016-10-05 16:39:03 +02:00
groups Fix a few things after the initial improvment to Members::DestroyService 2016-10-03 16:57:48 +02:00
import Enable import/export back for non-admins 2016-10-03 10:53:18 +02:00
oauth
profiles Address review comments from @smcgivern. 2016-08-18 22:12:02 +05:30
projects Fix a few things after the initial improvment to Members::DestroyService 2016-10-03 16:57:48 +02:00
sherlock
abuse_reports_controller.rb
application_controller.rb Update specs - add mocks to simulate old versions 2016-09-01 14:00:46 +02:00
autocomplete_controller.rb
confirmations_controller.rb
dashboard_controller.rb
emojis_controller.rb
groups_controller.rb Syntax fixes and better tests for helper methods. Updated docs. 2016-09-15 14:10:49 -05:00
health_check_controller.rb
help_controller.rb
invites_controller.rb
jwt_controller.rb Be nice to Docker Clients talking to JWT/auth 2016-09-27 16:59:05 +02:00
koding_controller.rb Split Koding admin/user docs 2016-08-22 17:09:15 +03:00
namespaces_controller.rb test if we can :read_group the group, not the namespace 2016-08-30 11:39:22 -07:00
notification_settings_controller.rb
omniauth_callbacks_controller.rb
passwords_controller.rb
profiles_controller.rb Add organization field to user profile 2016-09-27 14:04:39 +03:00
projects_controller.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
registrations_controller.rb
root_controller.rb
search_controller.rb Fixed search dropdown labels not displaying 2016-09-12 09:00:57 +01:00
sent_notifications_controller.rb Fix initial implementation to actually render the unsubscribe page 2016-09-20 09:52:57 +02:00
sessions_controller.rb
snippets_controller.rb Snippets get award emoji! 👍 2016-09-19 19:47:43 +03:00
uploads_controller.rb
users_controller.rb Fix snippets pagination 2016-09-26 12:42:12 +02:00