discourse/plugins/chat/app
Alan Guo Xiang Tan de79e5628e
PERF: Reduce mem allocation of Chat::AutoRemove::HandleCategoryUpdated (#28393)
This is a follow-up to 671f40ce07 and
ed11ee9d05.

While the optimisations in the previous commits were sound, it did not
resolve the memory bloat we were seeing. It turns out that we call
`.blank?` on the model's result if the model has not been marked
optional. The problem with this is that if the model returns an
ActiveRecord relation, calling `.blank?` on the relation basically loads
everything into memory.

Therefore, this commit removes `users` as a model in the  since it really isn't
a model but just a relation.
2024-08-16 11:35:08 +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 mem allocation of Chat::AutoRemove::HandleCategoryUpdated (#28393) 2024-08-16 11:35:08 +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