zulip/zerver/lib
Steve Howell 50641c3337 [perf] Reduce the number of DB queries in send_message.
For a 4-person stream, we were hitting the DB 8 times, and 4 of
those queries were to lazily get user.email for the 4 recipients
due to upstream code using only().  I added user_profile__email
to the only() call.

I believe this regression started 9/18, and after pushing this
to prod, we would should look at this graph:

https://stats1.zulip.net/graphs/8274cd84588

(imported from commit 70629cb69fe5955c674ba76482609dfe78e5faaf)
2013-09-24 16:19:52 -04:00
..
bugdown bugdown: Don't generate garbage on invalid links. 2013-09-18 16:22:13 -04:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py [perf] Reduce the number of DB queries in send_message. 2013-09-24 16:19:52 -04:00
alert_words.py Don't re-parse alert words more than necessary 2013-09-11 12:00:37 -04:00
avatar.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
bulk_create.py Make populate_db set the is_bot flag on bot accounts. 2013-09-18 16:16:17 -04:00
cache_helpers.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
cache.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
ccache.py Add webathena authentication button for Zephyr users. 2013-08-26 18:17:25 -04:00
context_managers.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
create_user.py New onboarding step: Set up an integration. 2013-08-08 17:23:27 -04:00
debug.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
event_queue.py Let clients specify how long queues shall live, within limits 2013-08-20 16:19:07 -04:00
html_diff.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
initial_password.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
logging_util.py Change Humbug => Zulip in name of error limiter module. 2013-08-07 10:00:07 -04:00
mention.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
parallel.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
query.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
queue.py Fix using SimpleQueueClient with multiple queues 2013-09-23 11:25:58 -04:00
rate_limiter.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
response.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
timeout.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
timestamp.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tornado_ioloop_logging.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
unminify.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
upload.py uploads: have upload_image_to_s3 take file data instead of a file object. 2013-09-17 10:00:01 -04:00
utils.py Move to a common random token generation function instead of several one-offs. 2013-08-09 14:59:26 -04:00