David Taylor
913db5d546
PERF: Only load the current user's topic_user for bookmarks list ( #17873 )
...
Previously, for every bookmarked topic, all topic_user records were being preloaded. Only the current user's record is actually required.
This commit introduces a new `perform_custom_preload!` API which bookmarkables can use to add custom preloading logic. We use this in topic_bookmarkable to load just the topic_user data we need (in the same way as `topic_list.rb`).
Co-authored-by: Blake Erickson <o.blakeerickson@gmail.com>
2022-08-17 09:40:24 +08:00
..
2022-08-10 13:30:18 +03:00
2022-08-09 21:52:39 +05:30
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-05-17 18:37:43 +03:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-05-17 13:06:08 -05:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-03-01 17:50:50 +00:00
2022-08-03 15:32:35 +03:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-10 12:11:50 +03:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-07-28 10:27:38 +08:00
2022-08-17 09:40:24 +08:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00
2022-08-04 11:05:02 +02:00