mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +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