mirror of https://github.com/zulip/zulip.git
e55eb53297
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) |
||
---|---|---|
api | ||
assets | ||
bots | ||
certs | ||
confirmation | ||
humbug | ||
node_modules | ||
servers | ||
templates | ||
tools | ||
zephyr | ||
.gitignore | ||
manage.py |