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-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-07-28 10:27:38 +08:00
2022-08-04 11:05:02 +02:00
2022-07-28 11:16:33 +03:00
2022-07-28 11:16:33 +03:00
2022-07-28 11:16:33 +03:00
2022-07-28 11:16:33 +03: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-12 11:26:56 +08:00
2022-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00
2022-08-09 14:54:33 +04:00
2022-08-09 14:54:33 +04: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-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00
2022-08-08 17:35:26 +04: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-09 21:52:39 +05:30
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-03-01 17:50:50 +00:00
2022-07-28 10:27:38 +08:00
2022-07-28 10:27:38 +08:00
2022-03-01 17:50:50 +00: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-03-01 17:50:50 +00:00
2022-07-28 10:27:38 +08:00
2022-05-23 10:07:15 +10:00
2022-07-28 10:27:38 +08:00
2022-08-08 17:24:04 +03:00
2022-08-12 11:26:56 +08:00
2022-07-28 10:27:38 +08:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-08-04 11:05:02 +02:00