discourse/plugins/chat
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
..
app PERF: Reduce memory footprint of Chat::AutoRemove::HandleCategoryUpdated.call (#28381) 2024-08-16 05:37:31 +08:00
assets UX: remove baseline alignment from chat timestamp (#28345) 2024-08-13 17:07:12 +02:00
config Update translations (#28246) 2024-08-13 16:31:24 +02:00
db DEV: Promote historic post_deploy migrations (#28128) 2024-07-30 01:14:03 +08:00
lib FIX: delay chat notify watching job (#28386) 2024-08-15 18:08:30 +04:00
public
spec FEATURE: participating users statistics (#28322) 2024-08-12 23:47:13 +02:00
test/javascripts DEV: Fix random typos (#28103) 2024-07-26 23:13:12 +02:00
plugin.rb FEATURE: created edit and delete flags (#27484) 2024-07-03 08:45:37 +10:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.