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-06-03 15:49:14 +02:00
2016-06-08 10:26:05 -04:00
2016-05-11 16:34:00 +00:00
2016-05-30 22:32:07 +07:00
2016-06-01 17:41:19 +00:00
2016-06-03 10:59:43 +02:00
2011-10-09 00:36:38 +03:00
2016-06-01 15:51:59 +00:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-06-01 12:55:00 +02:00
2016-05-09 18:00:28 +02:00
2016-05-18 08:47:15 -05:00
2016-04-28 21:28:39 +02:00
2016-05-09 18:00:28 +02:00
2016-05-26 13:58:01 +02:00
2016-06-03 13:34:38 +02:00
2016-06-08 10:26:05 -04:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-16 14:52:04 -05:00
2016-04-17 18:17:27 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-03-06 23:07:19 -05:00
2016-03-29 12:19:09 +01:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-06-06 11:59:49 -05:00
2015-12-18 14:19:48 -06:00
2016-05-31 19:33:46 -03:00
2016-05-09 18:00:28 +02:00
2016-06-07 14:01:30 +01:00
2016-06-01 12:10:08 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-18 17:14:55 +01:00
2016-06-07 12:50:29 +00:00
2016-05-18 23:45:25 -05:00
2016-05-13 17:15:01 -05:00
2016-06-06 11:03:39 +02:00
2016-06-07 15:02:00 +01:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-30 13:51:21 -06:00
2016-06-01 16:22:35 +02:00
2016-03-11 18:46:01 +01:00
2016-05-31 11:24:58 -03:00
2016-06-03 13:10:01 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-25 17:16:42 -04:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-05-09 18:00:28 +02:00
2016-06-08 10:26:05 -04:00
2016-05-09 18:00:28 +02:00
2016-02-02 11:25:44 -02:00
2016-05-09 18:00:28 +02:00
2016-05-17 10:17:45 +01:00
2016-02-01 13:51:05 +01:00
2016-06-06 12:50:31 +05:30
2016-06-06 12:50:31 +05:30
2016-05-09 18:00:28 +02:00
2016-04-20 08:25:40 +08:00