discourse/plugins/discourse-calendar/app/controllers
Joffrey JAFFEUX 908371191f
PERF: removes N+1 when loading events list (#34841)
There was two issues:
- using the `TopicListItemSerializer` was fetching way more than we need
and also expecting includes from other plugins (assign for example),
switching to our own dedicated serializer seems a better choice here
- event dates were not preloaded
- fixed a spec which was supposed to track N+1 but was commented

I also improved our fabricator to limit the boilerplate needed.

We might need few more indices to improve perf event more here but going
to merge this first.
2025-09-19 09:12:23 +02:00
..
admin/discourse_calendar
discourse_post_event PERF: removes N+1 when loading events list (#34841) 2025-09-19 09:12:23 +02:00