zulip/zerver/models
Alex Vandiver 6ace34c374 messages: Stop joining through every table.
Calling `.select_related()` with no arguments joins through every
possible table, recursively.  In this case, this currently produces a
query which joins through forty-three tables.

This is rather inefficient, particularly for what is a very common
call which should be very fast.

No callsite depends on having prefetched any joined table on the
object; drop all of the joins.
2024-03-22 09:30:17 -07:00
..
__init__.py models: Extract zerver.models.lookups. 2023-12-16 22:08:44 -08:00
alert_words.py models: Extract zerver.models.alert_words. 2023-12-16 22:08:44 -08:00
bots.py models: Extract zerver.models.bots. 2023-12-16 22:08:44 -08:00
clients.py models: Extract zerver.models.clients. 2023-12-16 22:08:44 -08:00
constants.py
custom_profile_fields.py custom_profile_fields: Add "required" parameter to the profile fields. 2024-03-21 10:48:54 -07:00
drafts.py models: Extract zerver.models.drafts. 2023-12-16 22:08:44 -08:00
groups.py models: Extract zerver.models.groups. 2023-12-16 22:08:44 -08:00
linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
lookups.py models: Extract zerver.models.lookups. 2023-12-16 22:08:44 -08:00
messages.py messages: Stop joining through every table. 2024-03-22 09:30:17 -07:00
muted_users.py models: Extract zerver.models.muted_users. 2023-12-16 22:08:44 -08:00
onboarding_steps.py models: Extract zerver.models.onboarding_steps. 2023-12-16 22:08:44 -08:00
prereg_users.py models: Extract zerver.models.prereg_users. 2023-12-16 22:08:44 -08:00
presence.py models: Extract zerver.models.presence. 2023-12-16 22:08:44 -08:00
push_notifications.py models: Extract zerver.models.push_notifications. 2023-12-16 22:08:44 -08:00
realm_audit_logs.py zilencer: Flip realm_locally_deleted when realm re-appears during sync. 2024-02-24 08:52:11 -08:00
realm_emoji.py models: Extract zerver.models.realm_emoji. 2023-12-16 22:08:44 -08:00
realm_playgrounds.py models: Extract zerver.models.realm_playgrounds. 2023-12-16 22:08:44 -08:00
realms.py zulip_updates: Send zulip updates based on zulip_update_*_level. 2024-03-20 11:48:06 -07:00
recipients.py refactor: Replace HUDDLE with DIRECT_MESSAGE_GROUP. 2024-03-21 16:39:33 -07:00
scheduled_jobs.py models: Extract zerver.models.scheduled_jobs. 2023-12-16 22:08:44 -08:00
streams.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
user_activity.py models: Extract zerver.models.user_activity. 2023-12-16 22:08:44 -08:00
user_topics.py models: Extract zerver.models.user_topics. 2023-12-16 22:08:44 -08:00
users.py ruff: Fix RUF021 Parenthesize when chaining `and` and `or` together. 2024-03-01 09:30:04 -08:00