zulip/zerver/lib
Steve Howell d24d8e4b36 Optimize showing subscribers on the settings page.
If you expand subscribers on your settings page, you will now see
a query like this in your postgres logs:

SELECT "zerver_userprofile"."email"
FROM "zerver_subscription" INNER JOIN "zerver_recipient" ON ("zerver_subscription"."recipient_id" = "zerver_recipient"."id") INNER JOIN "zerver_userprofile" ON ("zerver_subscription"."user_profile_id" = "zerver_userprofile"."id") WHERE ("zerver_recipient"."type" = 2  AND "zerver_subscription"."active" = true  AND "zerver_recipient"."type_id" = 40  AND "zerver_userprofile"."is_active" = true )

The join's still complicated, but the list of fields is one instead of 40+.

(imported from commit 48de1f888193a4d23fcea52d0b633d134e4a3ff7)
2013-09-19 08:52:53 -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 Optimize showing subscribers on the settings page. 2013-09-19 08:52:53 -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 Rename Django project to zproject. 2013-08-07 11:04:03 -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