gitlab-org--gitlab-foss/spec
Yorick Peterse 3025b71141 Improve ProjectTeam#max_member_access performance
By comparing objects in Ruby we can greatly improve the performance of
this method. In the worst case (should no data be eager loaded) this
will run the same amount of queries as before, in the best case (when
data _is_ eager loadeD) it requires no queries at all.

The added benchmark used to produce around 273 iterations per second.
With this commit this has been increased to almost 40 000 iterations per
second: a speedup of roughly 145 times.

Combined with eager loading Note associations this results in about 30
queries less when viewing a single issue, this in turn cuts down the
loading time by 30-40%.
2015-10-15 12:05:01 +02:00
..
benchmarks Improve ProjectTeam#max_member_access performance 2015-10-15 12:05:01 +02:00
controllers Fix: Images cannot show when projects' path was changed 2015-10-14 18:50:35 +03:00
factories Implement Commit Status API 2015-10-12 11:53:49 +02:00
features Fix retry and cancel for build 2015-10-14 12:56:52 +02:00
finders Merge remote-tracking branch 'public/trending-projects-performance' 2015-10-08 16:22:43 +02:00
fixtures No HTML-only email please 2015-08-21 16:09:55 -07:00
helpers Re-use User for avatars in link_to_member 2015-10-15 12:05:01 +02:00
javascripts Apply new design to files page 2015-10-13 16:41:48 +02:00
lib Fix: Images cannot show when projects' path was changed 2015-10-14 18:50:35 +03:00
mailers Merge branch 'stanhu/gitlab-ce-fix-message-id-notify' 2015-10-01 16:28:10 +02:00
models Merge branch 'simplify-cross-references' into 'master' 2015-10-14 20:10:34 +00:00
requests Merge branch 'predefined_build_variables' into 'master' 2015-10-14 18:55:59 +00:00
routing Move partial to right place and fix tests. 2015-09-08 15:14:14 +01:00
services Merge branch 'simplify-cross-references' into 'master' 2015-10-14 20:10:34 +00:00
support Merge branch 'simplify-cross-references' into 'master' 2015-10-14 20:10:34 +00:00
tasks/gitlab Fix rubocop warnings in spec/lib and spec/tasks 2015-10-03 16:02:21 -05:00
views/help Allow non-admin users to see version information 2015-09-23 17:18:15 -04:00
workers Rename reply_by_email to incoming_email to prepare for the future. 2015-09-21 10:35:37 +02:00
factories.rb Only publish ssh key-type and key 2015-08-04 14:33:18 +02:00
factories_spec.rb Remove the invalid key factories 2015-04-11 17:12:10 -04:00
rails_helper.rb Started on the actual rspec 3 upgrade 2015-06-22 12:12:49 +02:00
spec_helper.rb Merge branch 'refactor-build-service' into 'master' 2015-10-05 17:42:50 +00:00
teaspoon_env.rb teaspoon install 2015-05-28 18:22:32 -04:00