discourse/plugins/chat/app
Régis Hanol 7cf28fec7b
PERF: optimize chat user membership cleanup when removing a single user (#29833)
This optimizes a hot path when users are being removed from one or more groups since we use the `on(:user_removed_from_group)` event to call the `Chat::AutoLeaveChannels` with a `user_id` parameter. In such case, we don't need to clear the membership of all users, just that one user.

DEBUG: Also added a "-- event = <event>" comment on top of the SQL queries used by the "AutoLeaveChannels" so they show up in the logs and hopefully facilitate any performance issues that might arise in the future.
2024-11-20 09:21:02 +01:00
..
controllers/chat DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
jobs DEV: restore AutoJoinChannelBatch job as a no-op to clear queue (#29743) 2024-11-13 18:10:03 +01:00
models DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
queries/chat FEATURE: add mention count to threads (#29739) 2024-11-14 14:10:12 +04:00
serializers/chat DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
services/chat PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01: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