discourse/plugins/chat/lib
Régis Hanol 8f8d88afac
PERF: Optimize query for finding users with unread chat messages (#29964)
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 (#29964) 2024-11-28 15:28:37 +01:00
chat_sdk DEV: supports blocks in chat message sdk (#29839) 2024-11-20 08:06:48 +01:00
discourse_dev
email_controller_helper
onebox/templates
tasks