mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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.
18 KiB
18 KiB