mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Accessing .realm will cause a fetch query from the database if the attribute hasn't been fetched already earlier in the codepath. That's completely redundant if we're just comparing realms, and we should only access .realm_id attribute. This seems to eliminate a query in some codepaths, which is nice in this performance-sensitive function.
134 KiB
134 KiB