Files
gitlabhq/spec/models
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
..
2016-05-21 23:11:26 +07:00
2016-05-29 15:03:00 -04:00
2016-06-01 16:22:35 +02:00
2016-06-01 12:10:08 +02:00
2016-06-07 10:25:57 +02:00
2016-06-01 16:22:35 +02:00
2015-12-18 14:19:48 -06:00
2016-05-29 15:03:00 -04:00
2016-05-16 18:03:55 -05:00
2016-06-06 11:03:39 +02:00
2016-03-20 22:55:08 +01:00
2016-06-07 13:14:37 +02:00
2016-06-01 16:22:35 +02:00