discourse/plugins/chat/lib
Régis Hanol 8f8d88afac
PERF: Optimize query for finding users with unread chat messages ()
Using CTEs and DISTINCT ON to:
- Pre-filter active users with correct preferences
- Get only first unread message per channel
- Eliminate redundant joins and message scanning

This reduces the query execution time by limiting message scanning and joins to only relevant users and messages.

Internal ref t/142836 & t/139517
2024-11-28 15:28:37 +01:00
..
chat PERF: Optimize query for finding users with unread chat messages () 2024-11-28 15:28:37 +01:00
chat_sdk DEV: supports blocks in chat message sdk () 2024-11-20 08:06:48 +01:00
discourse_dev DEV: fix chat:*:populate rake tasks () 2024-11-13 18:11:25 +01:00
email_controller_helper
onebox/templates FiX: Update date url for thread oneboxes () 2023-10-31 08:04:40 -03:00
tasks DEV: fix chat:*:populate rake tasks () 2024-11-13 18:11:25 +01:00