mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
Fixes: #32934 context: Fetching all users who are members (directly or via sub-groups) of groups mentioned in one message. Reduce O(n) queries, where n is the number of mentioned groups, to a constant of 1 query. Extend "get_recursive_subgroups_for_groups" functionality to "get_root_id_annotated_recursive_subgroups_for_groups" which is the same but keeps track of each group root_id and annotates it to each group. Then in init_user_group_data(), we only fetch each group's root_id along with active direct members.
40 KiB
40 KiB