discourse/app
David Taylor 86ffa3ba4f
PERF: Preload topic thumbnails for all topic lists (#11238)
Previously thumbnails were only preloaded for queries using `TopicQuery#default_results`, which meant that requests for PM topic lists would lead to N+1 queries.

This commit moves the preloading into TopicList#load_topics, along with other similar preloads (e.g. plugin custom fields)

The direct call to `ActiveRecord::Associations::Preloader#preload` is necessary because `@topics` can be an array, not an `ActiveRecord::Relation`
2020-11-16 13:23:49 +00:00
..
assets FEATURE: Add auto update field to themes (#11102) 2020-11-16 14:44:09 +02:00
controllers FEATURE: Add auto update field to themes (#11102) 2020-11-16 14:44:09 +02:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
jobs FIX: when creating linked topics make sure they belong to same category (#11188) 2020-11-11 00:44:27 +05:30
mailers FIX: Ensure group SMTP and message builder always uses from address for Reply-To when IMAP is enabled (#11037) 2020-10-28 07:01:58 +10:00
models PERF: Preload topic thumbnails for all topic lists (#11238) 2020-11-16 13:23:49 +00:00
serializers FEATURE: Add auto update field to themes (#11102) 2020-11-16 14:44:09 +02:00
services FEATURE: Implement edit functionality for post notices (#11140) 2020-11-11 14:49:53 +02:00
views FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00