zulip/zerver/lib
Leo Franchi 0fe3da55e3 Reduce number of queries done by bulk_add_subscriptions
We now bulk-fetch subscription information once from the database
and use it throughout bulk_add_subscriptions in order to avoid
hitting the db O(streams) times.

On my machine this shaved the accounts_register API call from making
66 queries to making 37 queries.

(imported from commit 5dd5ad3f50b2a6edf85b5f1d55ebd697a1c60647)
2013-09-27 10:26:11 -04:00
..
bugdown Move twitter API credentials to local_settings.py. 2013-09-25 15:40:21 -04:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Reduce number of queries done by bulk_add_subscriptions 2013-09-27 10:26:11 -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.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
cache_helpers.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