discourse/plugins/chat/app
Alan Guo Xiang Tan 671f40ce07
PERF: Reduce memory footprint of Chat::AutoRemove::HandleCategoryUpdated.call (#28381)
This is a follow up to ed11ee9d05.

In `Chat::AutoRemove::HandleCategoryUpdated`, we are currently loading
the related users record in batches and then handing it off to
`Chat::Action::CalculateMembershipsForRemoval.call`. However, we are
still seeing memory spike as a result of this.

This commit eliminates the allocation of `User` ActiveRecord objects until
absolutely necessary. `Chat::Action::CalculateMembershipsForRemoval.call` has been
updated to accept an ActiveRecord relation instead which allows us to
avoid the ActiveRecord allocations.
2024-08-16 05:37:31 +08:00
..
controllers/chat DEV: Remove summarization code (#27373) 2024-07-02 08:51:47 -07:00
jobs DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
models DEV: Upgrade Rails to version 7.1 2024-07-04 10:58:21 +02:00
policies DEV: Migrate Chat::MessageCreator to a service (#22390) 2023-09-07 08:57:29 +02:00
queries/chat DEV: adds first_messages/last_messages to thread SDK (#26861) 2024-05-03 17:30:39 +02:00
serializers/chat fix: allow staff and direct message enabled groups to create personal chats 2024-06-25 12:17:22 +02:00
services/chat PERF: Reduce memory footprint of Chat::AutoRemove::HandleCategoryUpdated.call (#28381) 2024-08-16 05:37:31 +08:00
validators/chat FIX: Remove chat default channel setting (#28170) 2024-07-31 14:12:10 -03:00
views PERF: fix performance of chat email notifications 2024-06-10 14:25:06 +02:00