gitlab-org--gitlab-foss/app/models/concerns
Alejandro Rodríguez fade1a4cde Fix pseudo n+1 queries with Note and Note Authors in issuables APIs
This was not a clear cut n+1 query, given that if you're directly subscribed to all issues
that the API is returning you never really need to check for the notes. However, if you're
subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and
once to `users` (for the authors). By preemtively loading notes and authors, at worst you have
1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading
of notes when counting user notes.
2016-06-08 10:26:05 -04:00
..
awardable.rb Incorporate feedback 2016-05-11 22:43:58 +02:00
case_sensitivity.rb
internal_id.rb Use GitHub Issue/PR number as iid to keep references 2016-04-18 12:15:50 -03:00
issuable.rb Fix pseudo n+1 queries with Note and Note Authors in issuables APIs 2016-06-08 10:26:05 -04:00
mentionable.rb Refactor Mentionable 2016-05-26 17:14:07 +02:00
milestoneish.rb Use a better message when milestone is newly created 2016-04-29 10:15:49 +01:00
participable.rb Refactor Participable 2016-06-01 16:22:35 +02:00
referable.rb Render commit reference using short sha, but include full sha in comment. 2015-12-01 12:58:45 +01:00
sortable.rb Sort by ID when sorting using "Recently created" 2016-01-07 14:53:02 +01:00
statuseable.rb Render canceled status if any of the jobs canceled 2016-04-27 14:16:01 +02:00
strip_attribute.rb Strip attributes for Milestone and Issuable. #3428 2015-11-26 10:16:50 -05:00
subscribable.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
taskable.rb Fix bug that happened when replacing the Task list. #2296 2015-11-20 13:58:45 -05:00
token_authenticatable.rb Use method that creates runners registration token 2015-12-23 11:45:17 +01:00