gitlab-org--gitlab-foss/spec
Stan Hu a0edaa9210 Cache Routable#full_path in RequestStore to reduce duplicate route loads
We see in #27387 that a call to `polymorphic_path` will cause duplicate
SELECT route calls for each merge request in a milestone. This happens
because calling `project.namespace.becomes(Namespace)` will instantiate
a new instance of a Namespace for each merge request, which causes a N+1
query on the routes table. This change caches the state of the route by
the specific class and ID, which dramatically eliminates duplicate work.
2017-04-24 06:43:24 -07:00
..
bin
config
controllers Refactor add_users method for project and group 2017-04-21 18:38:10 +03:00
db/production
factories Don't delete a branch involved in an open merge request in "Delete all merged branches" service 2017-04-19 07:56:08 -07:00
features Adding animation for all dropdown 2017-04-21 15:05:38 +00:00
finders Merge branch 'update-droplab-to-webpack-version' into new-resolvable-discussion 2017-04-06 13:47:52 +01:00
fixtures After Trace#limit, we seek to the next line in case 2017-04-13 21:44:26 +08:00
helpers submodule_links: handle urls that don't end with .git 2017-04-21 10:54:31 -04:00
initializers Enable Style/Proc cop for rubocop 2017-04-02 12:48:43 +03:00
javascripts Merge branch 'form-focus-previous-incorrect-form' into 'master' 2017-04-21 17:02:07 +00:00
lib Merge branch '30672-versioned-markdown-cache' into 'master' 2017-04-21 19:25:39 +00:00
mailers Merge branch 'update-droplab-to-webpack-version' into new-resolvable-discussion 2017-04-06 13:47:52 +01:00
migrations Add a post-deploy migration to migrate from former Redis activity to DB 2017-04-14 15:20:55 +02:00
models Cache Routable#full_path in RequestStore to reduce duplicate route loads 2017-04-24 06:43:24 -07:00
policies Merge branch 'siemens/gitlab-ce-fix/subgroup-hide-button' into 'master' 2017-04-12 09:26:16 +00:00
presenters Remove TriggerSchedulePresenter. This will go in another MR. 2017-04-06 23:46:59 +09:00
requests Merge branch 'fix-jobs-enabled-parameter' into 'master' 2017-04-21 09:25:09 +00:00
routing Remove format from end of URL for URLs that take a ref or path 2017-04-17 19:03:21 -05:00
rubocop/cop Add remove_concurrent_index to database helper 2017-04-06 09:53:57 +11:00
serializers Review changes, used eq instead of match 2017-04-17 13:18:40 +01:00
services Merge branch 'uassign_on_member_removing' into 'master' 2017-04-20 12:42:41 +00:00
support Resolve "start discussion toggle clicking divider causes UI break" 2017-04-19 21:18:39 +00:00
tasks Expand components version specification format to allow branches 2017-04-13 17:32:00 -03:00
uploaders
views Fix container registry navigation menu highlights 2017-04-18 20:49:52 +00:00
workers Add new ScheduleUpdateUserActivityWorker and UpdateUserActivityWorker 2017-04-14 15:20:55 +02:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Allow to enable `rspec_profiling` for a branch on the CI 2017-04-13 14:24:35 +02:00