mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Our get_streams_traffic function used to query all streams in the StreamCount table if you passed in `None` for `streams`. Now we require that you pass in a list of stream_ids. I don't know how much work this will save the database, since probably the bulk of the work is aggregating. If we need to fine tune DB performance, we could possibly add `realm` as an argument and add it to the filter. What we'll immediately get, for large multi-realm installations, is less data over the wire and less work for the ORM.
6.8 KiB
6.8 KiB