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
..
2023-05-10 16:21:48 +03:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-05-10 16:21:48 +03:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-03-10 13:45:01 +08:00
2023-01-09 14:14:59 +00:00
2023-01-31 01:41:25 +08:00
2023-04-18 22:23:20 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 14:14:59 +00:00
2023-04-20 10:26:11 -05:00
2023-02-21 10:30:48 +01:00
2023-01-09 14:14:59 +00:00
2023-02-28 14:31:59 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-11 16:43:18 +08:00
2022-12-08 13:47:59 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-03-08 12:38:58 -03:00
2023-03-30 09:00:42 +08:00
2023-02-03 16:48:05 -03:00
2023-01-09 14:14:59 +00:00
2023-05-17 09:16:42 -07:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-02-21 10:30:48 +01:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-04-24 20:22:37 -05:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-27 10:05:27 -08:00
2023-04-17 22:53:50 +05:30
2023-05-25 09:10:32 +08:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-23 14:48:33 +10:00
2023-01-17 12:49:42 +00:00
2023-01-09 14:14:59 +00:00
2023-02-13 12:39:45 +08:00
2023-05-17 14:25:06 +08:00
2023-01-09 14:14:59 +00:00
2023-05-12 16:49:14 +08:00
2023-02-13 12:39:45 +08:00
2023-05-23 00:47:58 +05:30
2023-05-18 10:36:34 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-02-21 10:30:48 +01:00
2023-02-13 12:39:45 +08:00
2022-11-24 19:16:28 +04:00
2023-05-15 21:45:26 +03:00
2023-01-09 14:14:59 +00:00
2023-01-16 19:16:17 +02:00
2023-01-09 14:14:59 +00:00