mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
We had a few bugs where we were using a raw Django database query to get a UserProfile object. This might seem OK, but going through memcached is more efficient, and also guarantees that we get back the .select_related() version of the object, so that if we later access related fields like user_profile.realm.domain, we don't end up doing a second database query as well. Fixing these should in practice save a substantial number of database queries on handling update_status_list requests, which happen very often and access user_profile.realm.domain. (imported from commit 0a2027da1b5bbc7a4f6c6927aca498530d7a4977) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| authhack.py | ||
| backends.py | ||
| settings.py | ||
| test_settings.py | ||
| urls.py | ||
| wsgi.py | ||