mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Rather than fetch all UserMessage rows for all streams, and subtract those out in Python-space from the list of all Message rows the user may have received -- do this via a "NOT EXISTS" subquery. This is much better indexed (performing in fractions of milliseconds rather than hundreds), and also consumes much less memory.
34 KiB
34 KiB