discourse/app
Alan Guo Xiang Tan 5cfe323445
PERF: Strict loading for SidebarSection queries (#21717)
What is this change required?

I noticed that actions in `SidebarSectionsController` resulted in
lots of N+1 queries problem and I wanted a solution to
prevent such problems without having to write N+1 queries tests. I have
also used strict loading for `SidebarSection` queries in performance
sensitive spots.

Note that in this commit, I have also set `config.active_record.action_on_strict_loading_violation = :log`
for the production environment so that we have more visibility of
potential N+1 queries problem in the logs. In development and test
environment, we're sticking with the default of raising an error.
2023-05-25 09:10:32 +08:00
..
assets PERF: Strict loading for SidebarSection queries (#21717) 2023-05-25 09:10:32 +08:00
controllers PERF: Strict loading for SidebarSection queries (#21717) 2023-05-25 09:10:32 +08:00
helpers UX: Improve login required page (#20847) 2023-03-28 07:09:44 -05:00
jobs FIX: consider users.created_at for inactive cleanup (#21688) 2023-05-23 13:41:23 +05:30
mailers FIX: Likes received count in digest email (#21458) 2023-05-09 19:19:26 +02:00
models PERF: Strict loading for SidebarSection queries (#21717) 2023-05-25 09:10:32 +08:00
serializers PERF: Strict loading for SidebarSection queries (#21717) 2023-05-25 09:10:32 +08:00
services FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
views FEATURE: Create legal topics for set company name (#21620) 2023-05-24 23:05:36 +03:00