mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
We want to avoid Django going back to the database to get a realm object that the caller already has. It's actually currently the case that we often pre-fetch realm objects when we get stream objects using get_stream (using a call to select_related() with no arguments), but that is an expensive operation that we want to avoid going forward. This commit prepares us to just fetch slim objects.
32 KiB
32 KiB