mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Due to the refactoring of the avatar URL codepath that added realm IDs to the URLs, we ended up calling `get_user_profile_by_email` inside `get_avatar_url`, which in turns was called in a loop over all users in a realm. Needless to say, this resulted in a significant performance problem. We fix this issue by passing in the data needed to compute the avatar URL, rather than looking it up by email address.
2.4 KiB
2.4 KiB