mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
This commit refactors code in user_groups_in_realm_serialized such that we do not prefetch "can_mention_group__direct_members" and "can_mention_group__direct_subgroups" using prefetch_related and instead fetch members and subgroups for all groups in separate queries and then use that data to find the members and subgroups of the group used for that setting. This change helps us in avoiding two prefetch queries for each setting when we add more group settings.
52 KiB
52 KiB