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-04-27 10:18:16 +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-02-08 11:21:39 -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-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-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-28 09:09:20 -08:00
2023-01-09 14:14:59 +00:00
2023-01-11 16:43:18 +08:00
2023-01-09 14:14:59 +00:00
2022-07-28 11:16:33 +03:00
2022-07-28 11:16:33 +03:00
2022-10-05 12:30:02 +03:00
2022-07-28 11:16:33 +03:00
2023-04-24 09:30:51 -05:00
2023-01-09 14:14:59 +00:00
2022-10-26 16:41:31 +04: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
2022-04-21 18:18:35 +01:00
2023-03-10 13:45:01 +08:00
2023-01-31 17:10:32 +00:00
2023-01-09 14:15:00 +00:00
2023-05-25 09:10:32 +08:00
2023-01-20 09:50:24 +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-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2019-07-30 15:05:08 -04:00
2023-01-09 14:14:59 +00:00
2019-05-13 09:31:32 +08:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-07-08 10:46:21 +03:00
2023-04-25 18:25:57 +04:00
2022-08-09 14:54:33 +04: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-05-15 21:45:26 +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
2022-02-16 18:35:02 +02: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
2021-11-29 10:26:33 +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 16:04:26 -03:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-08-27 16:26:06 +01:00
2021-07-08 10:46:21 +03:00
2021-08-25 11:17:56 +08:00
2023-01-09 14:14:59 +00:00
2023-04-24 09:30:51 -05: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
2019-06-05 12:34:41 -04: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-03-02 16:40:53 +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-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-03 15:02:42 -03:00
2023-05-25 09:10:32 +08:00
2023-05-04 12:14:09 +10: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-28 09:09:20 -08:00
2023-05-25 09:10:32 +08:00
2021-01-20 17:43:00 -03: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-01-20 09:50:24 +08:00
2023-04-24 09:30:51 -05:00
2023-04-24 09:30:51 -05: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:15:00 +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 16:04:26 -03:00
2021-07-08 10:46:21 +03:00
2023-01-09 14:14:59 +00:00
2023-03-28 18:09:22 +11:00
2023-03-28 18:09:22 +11: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-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
2022-05-11 09:29:24 +10: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:15:00 +00:00
2022-05-11 09:29:24 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:15:00 +00:00
2022-12-21 13:21:02 +01:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2022-08-24 16:01:29 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-05-15 12:45:04 +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
2021-04-30 17:08:38 -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
2021-08-25 17:10:12 -04:00
2023-01-09 14:14:59 +00:00