mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 17:02:45 +08:00
8f8d88afac
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 |
||
---|---|---|
.. | ||
automation | ||
chat | ||
checklist | ||
discourse-details | ||
discourse-lazy-videos | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
footnote | ||
poll | ||
spoiler-alert | ||
styleguide |