discourse/app
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
..
assets A11Y: Accessible full-screen and minimize composer buttons (#17936) 2022-08-17 09:39:41 +08:00
controllers FEATURE: Add safe-mode toggle to /u/admin-login (#17930) 2022-08-15 15:30:07 +01:00
helpers UX: Improve safe-mode usability (#17929) 2022-08-15 15:15:15 +01:00
jobs FIX: Don't raise on deleted topic in UpdateHotlinkedRaw (#17901) 2022-08-13 22:40:26 +02:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models FIX: Recover from guardian check when deleting reviewable users. (#17949) 2022-08-16 11:50:06 -03:00
serializers PERF: Only load the current user's topic_user for bookmarks list (#17873) 2022-08-17 09:40:24 +08:00
services PERF: Only load the current user's topic_user for bookmarks list (#17873) 2022-08-17 09:40:24 +08:00
views FEATURE: Add safe-mode toggle to /u/admin-login (#17930) 2022-08-15 15:30:07 +01:00