gitlab-org--gitlab-foss/app
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
..
assets Merge branch '30618-change-placeholder-color' into 'master' 2017-04-21 20:15:45 +00:00
controllers Refactor Admin::GroupsController#members_update method and add some specs 2017-04-20 19:25:02 +03:00
finders Merge branch 'update-droplab-to-webpack-version' into new-resolvable-discussion 2017-04-06 13:47:52 +01:00
helpers Merge branch 'submodules-no-dotgit' into 'master' 2017-04-22 15:13:06 +00:00
mailers Address review comments 2017-04-05 17:44:14 +01: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
serializers Merge branch 'usage-ping-port' into 'master' 2017-04-19 14:48:31 +00:00
services Merge branch 'dz-refactor-create-members' into 'master' 2017-04-20 14:36:21 +00:00
uploaders Periodically clean up temporary upload files to recover storage space 2017-04-10 08:48:44 +11:00
validators Rename cron_time_zone to cron_timezone. Separate add_concurrent_foreign_key. 2017-04-06 23:46:59 +09:00
views Disable import URL field in New project form since it's hidden by default 2017-04-21 15:38:35 -05:00
workers Remove the ClearDatabaseCacheWorker 2017-04-21 11:52:28 +01:00