mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
This commit adds code to pass all the required arguments to select_related call for Message objects such that only the required related fields are fetched from the database. Previously, we did not pass any arguments to select_related, so all the directly and indirectly related fields were fetched when many of them were actually not being used and made the query unnecessarily complex.
12 KiB
12 KiB