gitlab-org--gitlab-foss/app/models/concerns
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
..
access_requestable.rb
awardable.rb Fix up @DouweM review 2017-03-06 15:19:33 -06:00
cache_markdown_field.rb Start versioning cached markdown fields 2017-04-21 17:24:33 +01:00
case_sensitivity.rb Fix code for cops 2017-02-23 09:31:57 -06:00
discussion_on_diff.rb Fix NUMBER_OF_TRUNCATED_DIFF_LINES re-definition error 2017-04-12 13:59:35 -04:00
expirable.rb Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
faster_cache_keys.rb
ghost_user.rb Move a user's award emoji to the ghost user 2017-04-06 18:59:17 +05:30
has_status.rb Count number of queries 2017-04-07 18:34:03 +02:00
ignorable_column.rb Remove and ignore notes.original_discussion_id column 2017-04-05 17:44:14 +01:00
importable.rb Rename skip_metrics to imported on the importable concern 2017-04-03 15:50:22 -03:00
internal_id.rb
issuable.rb Display issuable state only in notes and issuable description 2017-04-19 16:38:46 +02:00
mentionable.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
milestoneish.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
note_on_diff.rb Some code tweaks 2017-04-08 14:58:08 -05:00
noteable.rb Link to outdated diff in older MR version from outdated diff discussion 2017-04-08 14:37:46 -05:00
participable.rb address comments 2017-01-25 10:10:05 +01:00
presentable.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
project_features_compatibility.rb Mutate the attribute instead of issuing a write operation to the DB 2017-01-12 18:37:21 -05:00
protected_branch_access.rb Protected Tags backend review changes 2017-04-06 10:56:21 +01:00
protected_ref.rb Protected Tags backend review changes 2017-04-06 10:56:21 +01:00
protected_ref_access.rb Protected tags changes from backend maintainer review 2017-04-07 01:17:38 +01:00
protected_tag_access.rb Protected Tags backend review changes 2017-04-06 10:56:21 +01:00
reactive_caching.rb Merge branch '24185-legacy-ci-status-reactive-cache' into 'security' 2017-01-12 17:39:46 -05:00
reactive_service.rb Enable Style/SpaceInsideBrackets 2017-02-23 09:31:56 -06:00
referable.rb Fix cross-project references copy to include the project reference 2017-01-03 13:01:46 +01:00
relative_positioning.rb [Issue sorting]Addressed review comments 2017-03-14 14:11:59 +02:00
repository_mirroring.rb Move methods that are not related to mirroring to the repository model 2017-04-03 15:50:22 -03:00
resolvable_discussion.rb Refactor resolvability checks based on type 2017-04-06 10:51:45 -05:00
resolvable_note.rb Refactor resolvability checks based on type 2017-04-06 10:51:45 -05:00
routable.rb Cache Routable#full_path in RequestStore to reduce duplicate route loads 2017-04-24 06:43:24 -07:00
select_for_project_authorization.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
sortable.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
spammable.rb Present ajax call errors when failing to update an Issue 2017-03-21 14:20:15 -03:00
strip_attribute.rb
subscribable.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
taskable.rb Don’t count tasks that are not defined as list items correctly 2017-01-25 20:54:11 +01:00
time_trackable.rb Use normal associations instead of polymorphic. 2017-02-07 10:41:44 -05:00
token_authenticatable.rb Allow users to seed the initial runner registration token using an environment variable 2016-12-01 17:21:21 -08:00
uniquify.rb Implement final review comments from @DouweM and @rymai 2017-02-24 16:50:20 +05:30
valid_attribute.rb New error message recreating projects on pending delete 2017-01-11 15:07:09 +01:00